mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
more detailed error message (#14385)
This commit is contained in:
parent
528ad56530
commit
48d70e520f
@ -176,6 +176,7 @@ class RestData(object):
|
|||||||
self._request, timeout=10, verify=self._verify_ssl)
|
self._request, timeout=10, verify=self._verify_ssl)
|
||||||
|
|
||||||
self.data = response.text
|
self.data = response.text
|
||||||
except requests.exceptions.RequestException:
|
except requests.exceptions.RequestException as ex:
|
||||||
_LOGGER.error("Error fetching data: %s", self._request)
|
_LOGGER.error("Error fetching data: %s from %s failed with %s",
|
||||||
|
self._request, self._request.url, ex)
|
||||||
self.data = None
|
self.data = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user