mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-02 12:22:22 +00:00
Trying to fix broadcast connectionerror exceptions
This commit is contained in:
parent
919b166241
commit
3edfcb7631
1 changed files with 2 additions and 2 deletions
|
@ -456,8 +456,8 @@ def broadcast_task(sender_id, activity, recipients):
|
||||||
for recipient in recipients:
|
for recipient in recipients:
|
||||||
try:
|
try:
|
||||||
sign_and_send(sender, activity, recipient)
|
sign_and_send(sender, activity, recipient)
|
||||||
except (HTTPError, SSLError, ConnectionError) as e:
|
except (HTTPError, SSLError, ConnectionError):
|
||||||
logger.exception(e)
|
pass
|
||||||
|
|
||||||
|
|
||||||
def sign_and_send(sender, data, destination):
|
def sign_and_send(sender, data, destination):
|
||||||
|
|
Loading…
Reference in a new issue