Trying to fix broadcast connectionerror exceptions
This commit is contained in:
parent
919b166241
commit
3edfcb7631
|
@ -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 New Issue