From 51ff48fb59b2ee49226c2757d3826ec29ccf7b33 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 19 Jun 2024 13:59:55 +0200 Subject: setting catch_exception to True by default. Printing catch_exception value in str method. --- src/argaze/DataFeatures.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/argaze/DataFeatures.py b/src/argaze/DataFeatures.py index 4c12b86..da158be 100644 --- a/src/argaze/DataFeatures.py +++ b/src/argaze/DataFeatures.py @@ -615,8 +615,6 @@ class SharedObject(): def __init__(self): self._lock = threading.Lock() - self._execution_times = {} - self._exceptions = {} @timestamp class TimestampedException(Exception): @@ -872,7 +870,7 @@ class PipelineStepObject(): self.__image_parameters = {} # Init protected attributes - self._catch_exceptions = False + self._catch_exceptions = True self._image_parameters = {} self._draw_parameters = {} @@ -1043,6 +1041,8 @@ class PipelineStepObject(): if self.__parent is not None: output += f'{tabs}\t{Style.BRIGHT}parent{Style.RESET_ALL}: {Fore.MAGENTA}{self.__parent.name}{Style.RESET_ALL}\n' + output += f'{tabs}\t{Style.BRIGHT}catch_exceptions{Style.RESET_ALL}: {Fore.MAGENTA}{self._catch_exceptions}{Style.RESET_ALL}\n' + if len(self.__observers): output += f'{tabs}\t{Style.BRIGHT}observers{Style.RESET_ALL}:\n' for observer in self.__observers: -- cgit v1.1