From cd968940e70c71da208880b1c696b4c934706584 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:37:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/stpipe/step.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/stpipe/step.py b/src/stpipe/step.py index 778eeb7d..aee56d61 100644 --- a/src/stpipe/step.py +++ b/src/stpipe/step.py @@ -507,16 +507,15 @@ def run(self, *args): e, ) - elif isinstance(args[0], AbstractDataModel) and \ - self.class_alias is not None: + elif ( + isinstance(args[0], AbstractDataModel) + and self.class_alias is not None + ): try: - args[0][ - f"meta.cal_step.{self.class_alias}" - ] = "SKIPPED" + args[0][f"meta.cal_step.{self.class_alias}"] = "SKIPPED" except AttributeError as e: self.log.info( - "Could not record skip into DataModel" - " header: %s", + "Could not record skip into DataModel" " header: %s", e, ) step_result = args[0]