Fix deprecated method & typo

This commit is contained in:
Sebastian Steinbeißer 2024-12-28 12:40:27 +01:00
parent 79956d6a7b
commit ae66419c91
No known key found for this signature in database
GPG Key ID: E8200F0F0380C0E0

View File

@ -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),