Skip to content

Commit d25f04d

Browse files
fix: key error when handling FileNotFoundError in input functions. (snakemake#1138)
1 parent 2104e10 commit d25f04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snakemake/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def apply_input_function(
708708
# Function evaluation can depend on input files. Since expansion can happen during dryrun,
709709
# where input files are not yet present, we need to skip such cases and
710710
# mark them as <TBD>.
711-
if e.filename in aux_params["input"]:
711+
if "input" in aux_params and e.filename in aux_params["input"]:
712712
value = TBDString()
713713
else:
714714
raise e

0 commit comments

Comments
 (0)