From 9d3e435162f2adfada7b751b2f9075dca0931b06 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 15 Jun 2024 09:13:57 +0200 Subject: [PATCH] Improve error for rest client --- ft_client/freqtrade_client/ft_rest_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ft_client/freqtrade_client/ft_rest_client.py b/ft_client/freqtrade_client/ft_rest_client.py index 4e821ae5a..b03d61d7a 100755 --- a/ft_client/freqtrade_client/ft_rest_client.py +++ b/ft_client/freqtrade_client/ft_rest_client.py @@ -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)