mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
a couple fixes and more supported image files
This commit is contained in:
parent
5e1543bad5
commit
e3ce573fbb
8 changed files with 41 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue