Skip to content

Commit

Permalink
Merge pull request #3248 from rtibbles/deletion_is_underrated
Browse files Browse the repository at this point in the history
Catch contentnode doesnotexist during deletion as well as before.
  • Loading branch information
bjester authored Jul 21, 2021
2 parents 0a637e5 + ceff08c commit dacf7f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contentcuration/contentcuration/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def delete_node_task(
pass
else:
raise
except ContentNode.DoesNotExist:
deleted = True
except Exception as e:
self.report_exception(e)

Expand Down

0 comments on commit dacf7f3

Please sign in to comment.