zoneminder: fix incorrect use of logging.exception. (#7675)

Prior to this change the zoneminder component was attempting to
use logging.exception outside of exception handling code. This
would lead to the traceback module throwing an exception when
trying to work out the traceback for the exception.

This fixes the issue by changing the exception call into a
plain error logging call.
This commit is contained in:
tobygray 2017-05-21 10:11:33 +01:00 committed by Fabian Affolter
parent ceff9981be
commit 24b7fd3694

2
homeassistant/components/zoneminder.py Normal file → Executable file
View file

@ -109,7 +109,7 @@ def _zm_request(method, api_url, data=None):
break
else:
_LOGGER.exception("Unable to get API response from ZoneMinder")
_LOGGER.error("Unable to get API response from ZoneMinder")
try:
return req.json()