Skip to content

Commit

Permalink
Merge pull request #51 from peterthomassen/patch-1
Browse files Browse the repository at this point in the history
Fix deprecated tenacity call
  • Loading branch information
mhamzak008 authored Mar 10, 2021
2 parents f5c015d + 6fe7601 commit f3f1419
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions opsgenie_sdk/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ def __call_api(

# perform request and return response
try:
response_data = self.retrying.call(fn=self.request, method=method, url=url,
query_params=query_params,
headers=header_params,
post_params=post_params,
body=body,
_preload_content=_preload_content,
_request_timeout=_request_timeout)
response_data = self.retrying(fn=self.request, method=method, url=url,
query_params=query_params,
headers=header_params,
post_params=post_params,
body=body,
_preload_content=_preload_content,
_request_timeout=_request_timeout)
except Exception as exception:
self._sdk_request_details = {
"query_params": query_params,
Expand Down

0 comments on commit f3f1419

Please sign in to comment.