diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index 63da721d3..5f59d2c17 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -742,7 +742,7 @@ class TasksViewSerializer(serializers.ModelSerializer): result = filepath.name except Exception as e: # pragma: no cover # Extra security if something is malformed - logger.warn(f"Error getting file name from task: {e}", exc_info=True) + logger.warning(f"Error getting file name from task: {e}", exc_info=True) return result