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:
Athanasius committed 2021-08-25 14:57:08 +01:00
1 parent baac45f5fe
commit 303df05f2c
1 file changed
+1 -1
+1 -1
View File
@@ -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: