mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2024-11-10 17:47:13 +08:00
better logging for FileNotFoundError
This commit is contained in:
parent
35b8ffafb8
commit
f3b747a0f2
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue