Skip to content

Commit

Permalink
Add another exception to catch
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Oct 4, 2024
1 parent 1e9fbe7 commit 9f18fb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/stpipe/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,12 @@ def run(self, *args, **kwargs):
if len(args) > 0:
filename = args[0]

# Catch steps that cannot build a config
# (e.g. post hooks created from local functions,
# missing input files)
try:
config, config_file = self.build_config(filename, **kwargs)
except NotImplementedError:
# Catch steps that cannot build a config
# (i.e. post hooks created from local functions)
except (NotImplementedError, FileNotFoundError):
config = {}

skip = {"class", "logcfg", "name", "config_file"}
Expand Down

0 comments on commit 9f18fb0

Please sign in to comment.