switch from error to execption for logger
parent
284dbff2d5
commit
2317114b04
|
@ -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…
Reference in New Issue