Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 26, 2024
1 parent e44fce4 commit ac93d7c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/stpipe/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,16 +507,15 @@ def run(self, *args):
e,
)

elif isinstance(args[0], AbstractDataModel) and \
self.class_alias is not None:
elif (

Check warning on line 510 in src/stpipe/step.py

View check run for this annotation

Codecov / codecov/patch

src/stpipe/step.py#L510

Added line #L510 was not covered by tests
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(

Check warning on line 517 in src/stpipe/step.py

View check run for this annotation

Codecov / codecov/patch

src/stpipe/step.py#L514-L517

Added lines #L514 - L517 were not covered by tests
"Could not record skip into DataModel"
" header: %s",
"Could not record skip into DataModel" " header: %s",
e,
)
step_result = args[0]
Expand Down

0 comments on commit ac93d7c

Please sign in to comment.