From 84a680d6c39f4b75919673937d5fe9f817fffd0a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 28 Feb 2026 13:32:01 +0100 Subject: [PATCH] fix: improve non-matching pairs filter --- freqtrade/plugins/pairlist/pairlist_helpers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freqtrade/plugins/pairlist/pairlist_helpers.py b/freqtrade/plugins/pairlist/pairlist_helpers.py index cd48ea8fe..2431cb900 100644 --- a/freqtrade/plugins/pairlist/pairlist_helpers.py +++ b/freqtrade/plugins/pairlist/pairlist_helpers.py @@ -28,7 +28,11 @@ def expand_pairlist( raise ValueError(f"Wildcard error in {pair_wc}, {err}") # Remove wildcard pairs that didn't have a match. - result = [element for element in result if re.fullmatch(r"^[\w:/-]+$", element)] + result = [ + element + for element in result + if re.fullmatch(r"^[\w:/-]+$", element) and "_" not in element + ] else: for pair_wc in wildcardpl: