1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

CAPI: Some notes in comments

This commit is contained in:
Athanasius 2021-08-28 14:14:56 +01:00
parent 12b1e9b7bc
commit bc29891cc1
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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(