fixed xmp detection and cleaned up log messages

This commit is contained in:
Xevion
2019-11-01 23:12:50 -05:00
parent f267a43a26
commit 3d7179be34
4 changed files with 32 additions and 26 deletions

View File

@@ -42,9 +42,9 @@ def run():
_, ext = os.path.splitext(file)
ext = ext[1:]
if ext in LOSSY_EXTS or ext in RAW_EXTS:
file = FileProcessor(file)
process = FileProcessor(file)
logging.info(f"Processing file '{file}'...")
file.run(client)
process.run(client)
except Exception as error:
logging.error(str(error))
logging.warning(