From 36930a7e9a85a736cd47cbedafd7f35158ce8ca9 Mon Sep 17 00:00:00 2001 From: Gil Bregman Date: Wed, 17 Apr 2024 11:11:51 +0300 Subject: [PATCH] Ignore logging exceptions. Fixes #589 Signed-off-by: Gil Bregman --- control/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/control/utils.py b/control/utils.py index 1971bde3..bf2e6294 100644 --- a/control/utils.py +++ b/control/utils.py @@ -207,6 +207,7 @@ def __init__(self, config=None): if self.handler: return + logging.raiseExceptions = False format_string = "[%(asctime)s] %(levelname)s %(filename)s:%(lineno)d: %(message)s" date_fmt_string = "%d-%b-%Y %H:%M:%S" frmtr = logging.Formatter(fmt=format_string, datefmt=date_fmt_string)