mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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)
|
||||
journey.append(result.json()['stations'][0]['name'])
|
||||
except KeyError:
|
||||
_LOGGER.error(
|
||||
_LOGGER.exception(
|
||||
"Unable to determine stations. "
|
||||
"Check your settings and/or the availability of opendata.ch")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user