mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 00:35:30 +01:00
code style
This commit is contained in:
parent
a33082235b
commit
b0c8ade241
1 changed files with 1 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ def update_filename_and_move_files(sender, instance, **kwargs):
|
|||
try:
|
||||
os.rename(new_source_path, old_source_path)
|
||||
os.rename(new_archive_path, old_archive_path)
|
||||
except:
|
||||
except Exception as e:
|
||||
# This is fine, since:
|
||||
# A: if we managed to move source from A to B, we will also manage
|
||||
# to move it from B to A. If not, we have a serious issue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue