From 81ac6b36c9fe3b406321366395524138fd8c6450 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 16 Jul 2019 22:33:38 +0200 Subject: [PATCH] Bugfix for replies handling --- activitypub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activitypub.py b/activitypub.py index 854b5e0..251059d 100644 --- a/activitypub.py +++ b/activitypub.py @@ -123,7 +123,7 @@ class MicroblogPubBackend(Backend): object_id = None try: object_id = activity.get_object_id() - except ValueError: + except Exception: # TODO(tsileo): should be ValueError, but replies trigger a KeyError on object pass object_visibility = None if activity.has_type([ap.ActivityType.CREATE, ap.ActivityType.ANNOUNCE]):