From 24b7fd369486e379a26d9e1202316717bf160bfa Mon Sep 17 00:00:00 2001 From: tobygray Date: Sun, 21 May 2017 10:11:33 +0100 Subject: [PATCH] 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. --- homeassistant/components/zoneminder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 homeassistant/components/zoneminder.py diff --git a/homeassistant/components/zoneminder.py b/homeassistant/components/zoneminder.py old mode 100644 new mode 100755 index 8870b4713e0..86531401774 --- a/homeassistant/components/zoneminder.py +++ b/homeassistant/components/zoneminder.py @@ -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()