mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Make sure apns response code is an integer.
This commit is contained in:
parent
5c41eae7ec
commit
4e8ca0a326
@ -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']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user