diff --git a/src/stpipe/step.py b/src/stpipe/step.py index 1b725e63..c85dc9f7 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]