mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-09 13:29:15 +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.")
|
logger.warning(f"{p} : Copying files instead.")
|
||||||
shutil.copyfile(src, dest)
|
shutil.copyfile(src, dest)
|
||||||
toDelete = True
|
toDelete = True
|
||||||
|
except FileNotFoundError as f:
|
||||||
|
logger.warning(f"{f} : source: {src} -> destination: {dest}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.stacktrace()
|
logger.stacktrace()
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue