1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

CAPI: query error - Change JSON decode error message

This commit is contained in:
Athanasius 2021-08-26 14:54:01 +01:00
parent a53858750c
commit 0637873b91
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -781,8 +781,7 @@ class Session(object):
except ValueError as e:
logger.exception(f'decoding CAPI response content:\n{r.content.decode(encoding="utf-8")}\n')
# TODO: What now ?
raise ServerError("Couldn't JSON decode CAPI response") from e
raise ServerError("Frontier CAPI response: couldn't decode JSON") from e
except Exception as e:
logger.debug('Attempting GET', exc_info=e)