Skip to content

Commit

Permalink
Hotfix: Log network request error if it raised exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dule1322 committed Dec 7, 2023
1 parent 5eb3029 commit ed40585
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coretex/networking/network_manager_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ def request(
return self.request(endpoint, requestType, headers, query, body, files, auth, stream, retryCount + 1)

return response
except:
except BaseException as exception:
logging.getLogger("coretexpylib").debug(f">> [Coretex] Request failed. Reason \"{exception}\"", exc_info = exception)

if self.shouldRetry(retryCount, None):
if self._apiToken is not None:
headers[API_TOKEN_HEADER] = self._apiToken
Expand Down

0 comments on commit ed40585

Please sign in to comment.