Fixes minor depracation I noticed

This commit is contained in:
Trenton Holmes
2022-12-26 13:43:30 -08:00
committed by Trenton H
parent 3d42db7505
commit f0773b9807
2 changed files with 6 additions and 4 deletions

View File

@@ -447,7 +447,7 @@ def update_filename_and_move_files(sender, instance, **kwargs):
)
except (OSError, DatabaseError, CannotMoveFilesException) as e:
logger.warn(f"Exception during file handling: {e}")
logger.warning(f"Exception during file handling: {e}")
# This happens when either:
# - moving the files failed due to file system errors
# - saving to the database failed due to database errors