diff --git a/alphadia/planning.py b/alphadia/planning.py index 0a02d02e..57481f4a 100644 --- a/alphadia/planning.py +++ b/alphadia/planning.py @@ -346,8 +346,9 @@ def run( raise e finally: - workflow.reporter.log_string(f"Finished workflow for {raw_name}") - workflow.reporter.context.__exit__(None, None, None) + if workflow.reporter: + workflow.reporter.log_string(f"Finished workflow for {raw_name}") + workflow.reporter.context.__exit__(None, None, None) del workflow try: