Skip to content

Commit

Permalink
Error on invalid clade_recency values
Browse files Browse the repository at this point in the history
Show a meaningful error message if the value is improperly formatted.
  • Loading branch information
victorlin committed Oct 3, 2024
1 parent 94517be commit f2418ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/snakemake_rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _get_clade_recency_argument(wildcards):
elif isinstance(clade_recency_setting, int):
return "--clade-recency " + shquote(str(clade_recency_setting))
else:
return ""
raise Exception(f'clade_recency must be "all" or an integer number of months. Got: {clade_recency_setting!r}')

def _get_trait_columns_by_wildcards(wildcards):
if wildcards.build_name in config["traits"]:
Expand Down

0 comments on commit f2418ce

Please sign in to comment.