push_notifications: Return after receiving an error.

This commit is contained in:
Aman Agrawal
2023-12-08 19:58:19 +00:00
committed by Tim Abbott
parent 3d25c7372a
commit c5bfdaaeeb

View File

@@ -792,7 +792,7 @@ def initialize_push_notifications() -> None:
# administrator of this server, and may be localized to
# this endpoint; don't rashly mark push notifications as
# disabled when they are likely working perfectly fine.
pass
return
except Exception:
# An exception was thrown trying to ask the bouncer service whether we can send
# push notifications or not. There may be certain transient failures that we could