CAPI: Some notes in comments

This commit is contained in:
Athanasius committed 2021-08-28 14:14:56 +01:00
1 parent 12b1e9b7bc
commit bc29891cc1
2 files changed
+3

No files matched your search

+1
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
+2
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(