Skip to content

Commit

Permalink
πŸ› Failure state no model should not broke
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Apr 11, 2023
1 parent 965a6a8 commit b9a7cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/geosource/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b9a7cd1

Please sign in to comment.