diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 425550ce..aa6ed380 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -1113,6 +1113,7 @@ class AppWindow(object): except companion.CredentialsError: companion.session.retrying = False + # TODO: Might need to .invalidate() here to avoid "already auth'd" companion.session.login() # Companion API problem diff --git a/companion.py b/companion.py index 11ee0a5b..c2770ca0 100644 --- a/companion.py +++ b/companion.py @@ -749,6 +749,8 @@ class Session(object): logger.trace_if('capi.worker', '... got result...') r.raise_for_status() # Typically 403 "Forbidden" on token expiry # May also fail here if token expired since response is empty + # r.status_code = 401 + # raise requests.HTTPError capi_json = r.json() capi_data = CAPIData(capi_json, capi_endpoint) self.capi_raw_data.record_endpoint(