From 6617cede375f335e9722b09d69afa0a3b666f716 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 8 Apr 2021 14:15:58 -0700 Subject: [PATCH] Loudly throw errors in inbox task --- bookwyrm/views/inbox.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/bookwyrm/views/inbox.py b/bookwyrm/views/inbox.py index 34bd2e1c..8c645159 100644 --- a/bookwyrm/views/inbox.py +++ b/bookwyrm/views/inbox.py @@ -58,18 +58,11 @@ class Inbox(View): def activity_task(activity_json): """ do something with this json we think is legit """ # lets see if the activitypub module can make sense of this json - try: - activity = activitypub.parse(activity_json) - except activitypub.ActivitySerializerError: - return + activity = activitypub.parse(activity_json) # cool that worked, now we should do the action described by the type # (create, update, delete, etc) - try: - activity.action() - except activitypub.ActivitySerializerError: - # this is raised if the activity is discarded - return + activity.action() def has_valid_signature(request, activity):