mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
Improve error for rest client
This commit is contained in:
@@ -54,7 +54,7 @@ class FtRestClient:
|
|||||||
# return resp.text
|
# return resp.text
|
||||||
return resp.json()
|
return resp.json()
|
||||||
except ConnectionError:
|
except ConnectionError:
|
||||||
logger.warning("Connection error")
|
logger.warning(f"Connection error - could not connect to {netloc}.")
|
||||||
|
|
||||||
def _get(self, apipath, params: ParamsT = None):
|
def _get(self, apipath, params: ParamsT = None):
|
||||||
return self._call("GET", apipath, params=params)
|
return self._call("GET", apipath, params=params)
|
||||||
|
|||||||
Reference in New Issue
Block a user