fix: "missing" condition when no replacemet items are available

This commit is contained in:
Matthias
2026-01-02 09:46:19 +01:00
parent 795df94817
commit 9cdd8659ec

View File

@@ -71,7 +71,8 @@ def validate_exchange(exchange: str) -> tuple[bool, str, ccxt.Exchange | None]:
missing = [
k
for k, v in EXCHANGE_HAS_REQUIRED.items()
if ex_mod.has.get(k) is not True and not (all(ex_mod.has.get(x) for x in v))
if ex_mod.has.get(k) is not True
and (len(v) == 0 or not (all(ex_mod.has.get(x) for x in v)))
]
if missing:
result = False