From b21fccbc00eb0eebaec831bcf0a23adc09536226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric?= Date: Sun, 6 May 2018 13:56:55 -0400 Subject: [PATCH] =?UTF-8?q?[Daemon=20Teleinfo]=20error=20non=20d=C3=A9fini?= =?UTF-8?q?=20si=20exception?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #34 --- plugin_info/info.json | 2 +- ressources/teleinfo.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin_info/info.json b/plugin_info/info.json index a200671..1d0f266 100644 --- a/plugin_info/info.json +++ b/plugin_info/info.json @@ -15,5 +15,5 @@ }, "changelog" : "https://Jeedom-Plugins-Extra.github.io/plugin-teleinfo/#language#/changelog", "documentation" : "https://Jeedom-Plugins-Extra.github.io/plugin-teleinfo/#language#/", - "pluginVersion" : "2.7.2" + "pluginVersion" : "2.7.3" } diff --git a/ressources/teleinfo.py b/ressources/teleinfo.py index bf58c74..49aad80 100644 --- a/ressources/teleinfo.py +++ b/ressources/teleinfo.py @@ -125,8 +125,8 @@ def open(self): # self._ser = serial.Serial(self._device, 1200, bytesize=7, parity = 'E', stopbits=1) self._log.info("Teleinfo modem successfully opened") except: - #error = "Error opening Teleinfo modem '%s' : %s" % (self._device, traceback.format_exc()) - self._log.error("Error opening Teleinfo modem '%s' : %s" % (self._device, traceback.format_exc())) + error = "Error opening Teleinfo modem '%s' : %s" % (self._device, traceback.format_exc()) + self._log.error(error) raise TeleinfoException(error) def close(self):