better logging for FileNotFoundError

This commit is contained in:
bobokun 2022-12-08 12:22:13 -05:00
parent 35b8ffafb8
commit f3b747a0f2
No known key found for this signature in database
GPG key ID: B73932169607D927

View file

@ -229,6 +229,8 @@ def move_files(src, dest, mod=False):
logger.warning(f"{p} : Copying files instead.")
shutil.copyfile(src, dest)
toDelete = True
except FileNotFoundError as f:
logger.warning(f"{f} : source: {src} -> destination: {dest}")
except Exception as e:
logger.stacktrace()
logger.error(e)