- fix issue with returned reason

This commit is contained in:
2022-04-20 09:56:46 +03:00
parent 5129ffb903
commit 5c36c66237
+1 -1
View File
@@ -147,7 +147,7 @@ class APNsClient(object):
url = '/3/device/{}'.format(token_hex) url = '/3/device/{}'.format(token_hex)
response = self.__client.post('https://{}{}'.format(self.__server, url), headers=headers, data=json_payload) response = self.__client.post('https://{}{}'.format(self.__server, url), headers=headers, data=json_payload)
return response.status_code, response.json() return response.status_code, response.text
def get_notification_result(self, status: int, reason: str) -> Union[str, Tuple[str, str]]: def get_notification_result(self, status: int, reason: str) -> Union[str, Tuple[str, str]]:
""" """