From c50ca9f951301ffe48c1e83280906ee9cc694012 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 15 Mar 2021 16:23:04 -0700 Subject: [PATCH] Still trying to catch connection error I guess I was catching the wrong TYPE of connection error? annoying. --- bookwyrm/models/activitypub_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/models/activitypub_mixin.py b/bookwyrm/models/activitypub_mixin.py index 23ac1642..a253207a 100644 --- a/bookwyrm/models/activitypub_mixin.py +++ b/bookwyrm/models/activitypub_mixin.py @@ -461,7 +461,7 @@ def broadcast_task(sender_id, activity, recipients): for recipient in recipients: try: sign_and_send(sender, activity, recipient) - except (HTTPError, SSLError, ConnectionError): + except (HTTPError, SSLError, requests.exceptions.ConnectionError): pass