diff --git a/project/geosource/tasks.py b/project/geosource/tasks.py index 91e46177..30a1f180 100644 --- a/project/geosource/tasks.py +++ b/project/geosource/tasks.py @@ -50,7 +50,7 @@ def run_model_object_method(self, app, model, pk, method, success_state=states.S except Model.DoesNotExist: set_failure_state( - self, method, f"{Model}'s object with pk {pk} doesn't exist", obj + self, method, f"{Model}'s object with pk {pk} doesn't exist", None ) except AttributeError as e: