fix: "missing" condition when no replacemet items are available
This commit is contained in:
@@ -71,7 +71,8 @@ def validate_exchange(exchange: str) -> tuple[bool, str, ccxt.Exchange | None]:
|
|||||||
missing = [
|
missing = [
|
||||||
k
|
k
|
||||||
for k, v in EXCHANGE_HAS_REQUIRED.items()
|
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:
|
if missing:
|
||||||
result = False
|
result = False
|
||||||
|
|||||||
Reference in New Issue
Block a user