Skip to content

Commit

Permalink
Merge pull request #68 from Omnipro-Solutions/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
edgarpena14 committed May 28, 2024
2 parents cadc797 + 2a59b6f commit 955e1ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omni_pro_oms/core/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def _set_api_models(self):
def call_api(
self, method: str, endpoint: str, raise_status: bool = True, response_is_json: bool = True, **kwargs
) -> dict:
kwargs.update({"timeout": self.timeout})
if not kwargs.get("timeout", None):
kwargs.update({"timeout": self.timeout})
headers = {"Accept": "application/json", "Authorization": self.token}
url = f"{self.tenant.base_url}{endpoint}"
response = requests.request(method, url, headers=headers, **kwargs)
Expand Down

0 comments on commit 955e1ae

Please sign in to comment.