Skip to content

Commit

Permalink
Update trace.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAndradeDias authored Oct 3, 2023
1 parent 96d3332 commit c732778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/outliner/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c732778

Please sign in to comment.