switch from error to execption for logger

pull/157/head
Fabian Affolter 2015-06-01 13:49:46 +02:00
parent 284dbff2d5
commit 2317114b04
1 changed files with 1 additions and 1 deletions

View File

@ -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")