Improve error for rest client

This commit is contained in:
Matthias 2024-06-15 09:13:57 +02:00
parent 61971f3949
commit 9d3e435162

View File

@ -54,7 +54,7 @@ class FtRestClient:
# return resp.text
return resp.json()
except ConnectionError:
logger.warning("Connection error")
logger.warning(f"Connection error - could not connect to {netloc}.")
def _get(self, apipath, params: ParamsT = None):
return self._call("GET", apipath, params=params)