From d25f04db820c9651835b7323baef5931d4f8dc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20K=C3=B6ster?= Date: Tue, 17 Aug 2021 16:56:43 +0200 Subject: [PATCH] fix: key error when handling FileNotFoundError in input functions. (#1138) --- snakemake/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snakemake/rules.py b/snakemake/rules.py index 39b05e27b..d922ef012 100644 --- a/snakemake/rules.py +++ b/snakemake/rules.py @@ -708,7 +708,7 @@ def apply_input_function( # Function evaluation can depend on input files. Since expansion can happen during dryrun, # where input files are not yet present, we need to skip such cases and # mark them as . - if e.filename in aux_params["input"]: + if "input" in aux_params and e.filename in aux_params["input"]: value = TBDString() else: raise e