1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

CAPI: Some extra comments for fail/auth mess

This commit is contained in:
Athanasius 2021-08-25 14:54:53 +01:00
parent 2065721dd9
commit baac45f5fe
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -762,10 +762,13 @@ class Session(object):
except (requests.HTTPError, ValueError) as e:
logger.exception('Frontier CAPI Auth: GET ')
self.dump(r)
# TODO: Does this *necessarily* mean we need to call close() ?
# Maybe the **CAPI** had a transitory issue and auth is fine.
self.close()
if self.retrying: # Refresh just succeeded but this query failed! Force full re-authentication
logger.error('Frontier CAPI Auth: query failed after refresh')
# TODO: Again, this might be an auth issue, but maybe not.
self.invalidate()
self.retrying = False
# TODO: This must NOT happen here, we need to signal back to the requesting