aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2024-06-19 13:59:55 +0200
committerThéo de la Hogue2024-06-19 13:59:55 +0200
commit51ff48fb59b2ee49226c2757d3826ec29ccf7b33 (patch)
treee91178b439879d4854b1ac79c4aadb501fdaa211
parentb228251eeb521559ce452f392304d2a06f3bf1cc (diff)
downloadargaze-51ff48fb59b2ee49226c2757d3826ec29ccf7b33.zip
argaze-51ff48fb59b2ee49226c2757d3826ec29ccf7b33.tar.gz
argaze-51ff48fb59b2ee49226c2757d3826ec29ccf7b33.tar.bz2
argaze-51ff48fb59b2ee49226c2757d3826ec29ccf7b33.tar.xz
setting catch_exception to True by default. Printing catch_exception value in str method.
-rw-r--r--src/argaze/DataFeatures.py6
1 files 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: