mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
Fix deprecated method & typo
This commit is contained in:
parent
79956d6a7b
commit
ae66419c91
@ -353,7 +353,7 @@ def cleanup_document_deletion(sender, instance, **kwargs):
|
|||||||
f"{filename} could not be deleted: {e}",
|
f"{filename} could not be deleted: {e}",
|
||||||
)
|
)
|
||||||
elif filename and not os.path.isfile(filename):
|
elif filename and not os.path.isfile(filename):
|
||||||
logger.warn(f"Expected {filename} tp exist, but it did not")
|
logger.warning(f"Expected {filename} to exist, but it did not")
|
||||||
|
|
||||||
delete_empty_directories(
|
delete_empty_directories(
|
||||||
os.path.dirname(instance.source_path),
|
os.path.dirname(instance.source_path),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user