mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
Make sure apns response code is an integer.
This commit is contained in:
@@ -77,6 +77,8 @@ def response_listener(error_response):
|
||||
return
|
||||
|
||||
code = error_response['status']
|
||||
assert isinstance(code, int)
|
||||
|
||||
errmsg = ERROR_CODES[code]
|
||||
data = redis_client.hgetall(key)
|
||||
token = data['token']
|
||||
|
||||
Reference in New Issue
Block a user