mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-03-05 13:24:20 +00:00
fix: improve non-matching pairs filter
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user