mirror of
https://github.com/Xevion/phototag.git
synced 2025-12-17 12:12:45 -06:00
added in type hinting, removed unnecessary size calc methods and added bits of logging
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user