a couple fixes and more supported image files

This commit is contained in:
jonaswinkler
2020-12-02 17:39:49 +01:00
parent 1bb5dbd694
commit 1d073d2cfd
8 changed files with 41 additions and 4 deletions

View File

@@ -268,8 +268,9 @@ def update_filename_and_move_files(sender, instance, **kwargs):
logging.getLogger(__name__).debug(
f"Moved file {old_source_path} to {new_source_path}.")
logging.getLogger(__name__).debug(
f"Moved file {old_archive_path} to {new_archive_path}.")
if instance.archive_checksum:
logging.getLogger(__name__).debug(
f"Moved file {old_archive_path} to {new_archive_path}.")
except OSError as e:
instance.filename = old_filename