Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

push_notifications: Return after receiving an error.

Aman Agrawalc5bfdaaeeb04
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py
index 187710e9f21..66b69db0add 100644
--- a/zerver/lib/push_notifications.py
+++ b/zerver/lib/push_notifications.py
@@ -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