mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +03:00
CAPI: 'Need auth' is from 401 now, not a redirect
This commit is contained in:
parent
2179936d6f
commit
cd6d22844b
@ -734,7 +734,7 @@ class Session(object):
|
||||
"""Worker thread that performs actual CAPI queries."""
|
||||
logger.debug('CAPI worker thread starting')
|
||||
|
||||
def capi_single_query(capi_endpoint: str, timeout: int = capi_default_timeout) -> CAPIData: # noqa: CCR001
|
||||
def capi_single_query(capi_endpoint: str, timeout: int = capi_default_timeout) -> CAPIData:
|
||||
"""
|
||||
Perform a *single* CAPI endpoint query within the thread worker.
|
||||
|
||||
@ -788,12 +788,6 @@ class Session(object):
|
||||
# LANG: Frontier CAPI data retrieval failed
|
||||
raise ServerError(f'{_("Frontier CAPI query failure")}: {capi_endpoint}') from e
|
||||
|
||||
# TODO: I don't think this happens any more, it's just a 401 status as above
|
||||
if r.url.startswith(FRONTIER_AUTH_SERVER):
|
||||
logger.info('Redirected back to Auth Server')
|
||||
self.dump(r)
|
||||
raise CredentialsError('Redirected back to Auth Server')
|
||||
|
||||
self.retrying = False
|
||||
|
||||
if capi_endpoint == self.FRONTIER_CAPI_PATH_PROFILE and 'commander' not in capi_data:
|
||||
|
Loading…
x
Reference in New Issue
Block a user