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

CAPI: Remove un-needed check/setting of Session.retrying

This commit is contained in:
Athanasius 2021-08-26 15:16:42 +01:00
parent cd6d22844b
commit ef32eb0140
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -770,12 +770,6 @@ class Session(object):
# TODO: Translation ?
raise ServerError("Frontier CAPI down for maintenance") from e
# TODO: Let caller decide on this
# if self.retrying: # Refresh just succeeded but this query failed! Force full re-authentication
# self.retrying = False
# raise CredentialsError('query failed after refresh') from e
# TODO: Better to return error and have upstream re-try auth ?
logger.exception('Frontier CAPI: Misc. Error')
raise ServerError('Frontier CAPI: Misc. Error') from e
@ -788,8 +782,6 @@ class Session(object):
# LANG: Frontier CAPI data retrieval failed
raise ServerError(f'{_("Frontier CAPI query failure")}: {capi_endpoint}') from e
self.retrying = False
if capi_endpoint == self.FRONTIER_CAPI_PATH_PROFILE and 'commander' not in capi_data:
logger.error('No commander in returned data')