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:
parent
12b1e9b7bc
commit
bc29891cc1
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user