mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-18 02:52:42 +03:00
CAPI: Adjust 'requests.ConnectionError' logging
It was specifically implying DNS resolution issues, but this is far more general than that.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -756,7 +756,7 @@ class Session(object):
|
||||
)
|
||||
|
||||
except requests.ConnectionError as e:
|
||||
logger.warning(f'Unable to resolve name for CAPI: {e} (for request: {capi_endpoint})')
|
||||
logger.warning(f'Request {capi_endpoint}: {e}')
|
||||
raise ServerConnectionError(f'Unable to connect to endpoint: {capi_endpoint}') from e
|
||||
|
||||
except (requests.HTTPError, ValueError) as e:
|
||||
|
||||
Reference in new issue
Block a user