checking exchange name with lower
This commit is contained in:
parent
0b40c37cc5
commit
40b4a9977e
@ -102,7 +102,7 @@ def calculate_backoff(retrycount, max_retries):
|
|||||||
def retrier_async(f):
|
def retrier_async(f):
|
||||||
async def wrapper(*args, **kwargs):
|
async def wrapper(*args, **kwargs):
|
||||||
count = kwargs.pop('count', API_RETRY_COUNT)
|
count = kwargs.pop('count', API_RETRY_COUNT)
|
||||||
kucoin = args[0].name == "Kucoin" # Check if the exchange is KuCoin.
|
kucoin = args[0].name.lower() == "kucoin" # Check if the exchange is KuCoin.
|
||||||
try:
|
try:
|
||||||
return await f(*args, **kwargs)
|
return await f(*args, **kwargs)
|
||||||
except TemporaryError as ex:
|
except TemporaryError as ex:
|
||||||
|
Loading…
Reference in New Issue
Block a user