From 0c9b16f123d5df4c4ea1c0b18c8276b540f70493 Mon Sep 17 00:00:00 2001 From: Vince Reuter Date: Tue, 5 Sep 2023 15:52:44 +0200 Subject: [PATCH] try getting just stage name, but fall back to str representation of stage; close #197 --- pypiper/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypiper/pipeline.py b/pypiper/pipeline.py index 69474c2..a5546ce 100644 --- a/pypiper/pipeline.py +++ b/pypiper/pipeline.py @@ -314,7 +314,7 @@ def run(self, start_point=None, stop_before=None, stop_after=None): # between results from different stages. skip_mode = False - print("Running stage: {}".format(stage)) + print(f"Running stage: {getattr(stage, "name", str(stage))}") stage.run() self.executed.append(stage)