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_registration: Remove exception handling for no plan configured.

Prakhar Pratyushffaadad684ce
diff --git a/zerver/lib/push_registration.py b/zerver/lib/push_registration.py
index fd51456e907..bab840af636 100644
--- a/zerver/lib/push_registration.py
+++ b/zerver/lib/push_registration.py
@@ -14,7 +14,6 @@ from zerver.lib.exceptions import (
MissingRemoteRealmError,
RequestExpiredError,
)
-from zerver.lib.push_notifications import PushNotificationsDisallowedByBouncerError
from zerver.lib.remote_server import (
PushNotificationBouncerError,
PushNotificationBouncerRetryLaterError,
@@ -106,8 +105,6 @@ def handle_register_push_device_to_bouncer(
MissingRemoteRealmError,
# Invalid credentials or unexpected status code
PushNotificationBouncerError,
- # Plan doesn't allow sending push notifications
- PushNotificationsDisallowedByBouncerError,
):
# Server admins need to fix these set of errors, report them.
# Server should keep retrying to register until `RequestExpiredError` is raised.