Skip to content

Commit

Permalink
remove retry and header
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 committed Jun 27, 2024
1 parent 8ac4446 commit 09e2b18
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sage_desktop_sdk/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def set_api_url(self, indentifier: str):
"""
self.__api_url = "https://{0}".format(indentifier)

@retry((json.JSONDecodeError, SageDesktopSDKError))
def update_cookie(self, api_key: str, api_secret: str):
"""
Sets the cookies for APIs
Expand All @@ -58,8 +57,7 @@ def update_cookie(self, api_key: str, api_secret: str):
"""

request_header = {
'Accept': 'application/json',
'Content-type': 'application/json',
'Content-type': 'application/json'
}

api_data = json.dumps({
Expand Down

0 comments on commit 09e2b18

Please sign in to comment.