mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
localserver: Add support for not having an APNS_CERT_FILE.
(imported from commit 42d8caebb3035bd9e6e19db6359cc33e8ab4f317)
This commit is contained in:
@@ -14,7 +14,7 @@ import base64, binascii, logging, os
|
||||
# for each request
|
||||
session = Session()
|
||||
connection = None
|
||||
if os.path.exists(settings.APNS_CERT_FILE):
|
||||
if settings.APNS_CERT_FILE is not None and os.path.exists(settings.APNS_CERT_FILE):
|
||||
connection = session.get_connection(settings.APNS_SANDBOX, cert_file=settings.APNS_CERT_FILE)
|
||||
|
||||
def num_push_devices_for_user(user_profile):
|
||||
|
||||
Reference in New Issue
Block a user