From 566150e7a5bc9582763c3256a507d5c61e264485 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 10 Nov 2024 20:35:53 +0100 Subject: [PATCH] Update augur/utils.py --- augur/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/augur/utils.py b/augur/utils.py index aff3033f7..35fe2ea7f 100644 --- a/augur/utils.py +++ b/augur/utils.py @@ -362,7 +362,7 @@ def _flatten(feature): feature_name = _lookup_feature_name_like_nextclade(feature) if feature_name == 'nuc': raise AugurError(f"Reference {reference!r} contains a gene with the name 'nuc'. This is not allowed.") - if feature_name in feature_names or feature_names is None: + if feature_names is None or feature_name in feature_names: features[feature_name] = feature if feature_names is not None: