Skip to content

Commit ca320ca

Browse files
author
Oleksandr Bilohura
committed
Fix re-request
1 parent e66efb9 commit ca320ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysendpulse/pysendpulse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __send_request(self, path, method="GET", params=None, use_token=True, use_js
157157
response = requests.get(url, headers=headers, params=params)
158158
if response.status_code == 401 and self.__refresh_token == 0:
159159
self.__get_token()
160-
return self.__send_request(path, method, params)
160+
return self.__send_request(path, method, json.loads(params), use_token)
161161
elif response.status_code == 404:
162162
logger.warning("404: Sorry, the page you are looking for could not be found.")
163163
logger.debug("Raw_server_response: {}".format(response.text, ))

0 commit comments

Comments
 (0)