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.

remote_server: Check for missing ZULIP_ORG_ID, ZULIP_ORG_KEY.

Anders Kaseorga98ecee27894
diff --git a/zerver/lib/remote_server.py b/zerver/lib/remote_server.py
index 4f04d62952d..3672c8dc159 100644
--- a/zerver/lib/remote_server.py
+++ b/zerver/lib/remote_server.py
@@ -52,6 +52,8 @@ def send_to_push_bouncer(
"""
assert settings.PUSH_NOTIFICATION_BOUNCER_URL is not None
+ assert settings.ZULIP_ORG_ID is not None
+ assert settings.ZULIP_ORG_KEY is not None
url = urllib.parse.urljoin(
settings.PUSH_NOTIFICATION_BOUNCER_URL, "/api/v1/remotes/" + endpoint
)