added in type hinting, removed unnecessary size calc methods and added bits of logging

This commit is contained in:
Xevion
2019-11-01 22:44:29 -05:00
parent 9d56c5ebfc
commit a6bfd8daef
2 changed files with 8 additions and 13 deletions

View File

@@ -44,9 +44,10 @@ def run():
file = FileProcessor(file)
file.run(client)
except:
logging.warning('Removing temporary directory before raising exception.')
os.rmdir(TEMP_PATH)
raise
# Remove the directory, we are done here
print('Cleaning up temporary directory...')
logging.info('Removing temporary directory.')
os.rmdir(TEMP_PATH)