From c732778aca80fe1d2870cd6a7cca309644a46668 Mon Sep 17 00:00:00 2001 From: Lucas Andrade Dias <59940829+LucasAndradeDias@users.noreply.github.com> Date: Tue, 3 Oct 2023 19:56:04 -0300 Subject: [PATCH] Update trace.py --- src/outliner/trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/outliner/trace.py b/src/outliner/trace.py index 31737b1..db0ae6d 100644 --- a/src/outliner/trace.py +++ b/src/outliner/trace.py @@ -21,7 +21,7 @@ def run(self, module_name: str, func: str, func_params=None): trace_obj = importlib.util.module_from_spec(trace_import) trace_import.loader.exec_module(trace_obj) - object_to_run = getattr(trace_obj, func) + object_to_run = getattr(trace_obj, func, None) if not callable(object_to_run): raise Exception("given object '%s' is not callable." % (func))