mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
switch from error to execption for logger
This commit is contained in:
parent
9d1e881f12
commit
90d55ef901
@ -59,7 +59,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
result = get(_RESOURCE + 'locations?query=%s' % location)
|
result = get(_RESOURCE + 'locations?query=%s' % location)
|
||||||
journey.append(result.json()['stations'][0]['name'])
|
journey.append(result.json()['stations'][0]['name'])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
_LOGGER.error(
|
_LOGGER.exception(
|
||||||
"Unable to determine stations. "
|
"Unable to determine stations. "
|
||||||
"Check your settings and/or the availability of opendata.ch")
|
"Check your settings and/or the availability of opendata.ch")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user