Skip to content

Commit

Permalink
try getting just stage name, but fall back to str representation of s…
Browse files Browse the repository at this point in the history
…tage; close databio#197
  • Loading branch information
vreuter committed Sep 6, 2023
1 parent 5fa2d14 commit 0c9b16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypiper/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0c9b16f

Please sign in to comment.