add log warning

This commit is contained in:
bobokun 2022-01-17 14:21:34 -05:00
parent cb1999c648
commit d918f793d2
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671

View file

@ -314,7 +314,8 @@ def move_files(src, dest, mod=False):
modTime = time.time()
os.utime(src, (modTime, modTime))
shutil.move(src, dest)
except PermissionError:
except PermissionError as p:
logger.warning(f"{p} : Copying files instead.")
shutil.copyfile(src, dest)
toDelete = True
except Exception as e: