Skip to content

Commit 84a680d

Browse files
committed
fix: improve non-matching pairs filter
1 parent 56d73e0 commit 84a680d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

freqtrade/plugins/pairlist/pairlist_helpers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ def expand_pairlist(
2828
raise ValueError(f"Wildcard error in {pair_wc}, {err}")
2929

3030
# Remove wildcard pairs that didn't have a match.
31-
result = [element for element in result if re.fullmatch(r"^[\w:/-]+$", element)]
31+
result = [
32+
element
33+
for element in result
34+
if re.fullmatch(r"^[\w:/-]+$", element) and "_" not in element
35+
]
3236

3337
else:
3438
for pair_wc in wildcardpl:

0 commit comments

Comments
 (0)