From 50dfcfcb488be94475c5c27fc2933e0ca0112016 Mon Sep 17 00:00:00 2001 From: Thomas Juerges <203795-tjuerges@users.noreply.gitlab.com> Date: Mon, 7 Jun 2021 19:06:25 +0200 Subject: [PATCH] L2SS-253: Use {}.format to log the exception --- devices/util/lofar_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/util/lofar_logging.py b/devices/util/lofar_logging.py index 4bedad018..5f3696efa 100644 --- a/devices/util/lofar_logging.py +++ b/devices/util/lofar_logging.py @@ -64,7 +64,7 @@ def log_exceptions(): try: return func(self, *args, **kwargs) except Exception as e: - self.error_stream("Caught exception: %s: %s", e.__class__.__name__, e, exc_info=1) + self.error_stream("Unhandled exception: {}".format(e)) raise e return inner -- GitLab