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