Skip to content
Snippets Groups Projects
Commit 2317114b authored by Fabian Affolter's avatar Fabian Affolter
Browse files

switch from error to execption for logger

parent 284dbff2
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment