From f4fe3dd34c05e0921bcf384b9ba9d450bb79392b Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 12 May 2025 16:28:09 +0200 Subject: [PATCH] Improve error handling of com --- biogascontrollerapp/lib/com.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/biogascontrollerapp/lib/com.py b/biogascontrollerapp/lib/com.py index da97ba8..8177f03 100644 --- a/biogascontrollerapp/lib/com.py +++ b/biogascontrollerapp/lib/com.py @@ -71,8 +71,8 @@ class Com(ComSuperClass): for filter in self._filters: if ( filter in comport ): return comport - except: - pass + except Exception as e: + self._err = e return ""