Merge pull request #6630 from SmartManoj/patch-4

checking exchange name with lower
This commit is contained in:
Matthias
2022-04-02 20:09:10 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ def calculate_backoff(retrycount, max_retries):
def retrier_async(f):
async def wrapper(*args, **kwargs):
count = kwargs.pop('count', API_RETRY_COUNT)
kucoin = args[0].name == "Kucoin" # Check if the exchange is KuCoin.
kucoin = args[0].name == "KuCoin" # Check if the exchange is KuCoin.
try:
return await f(*args, **kwargs)
except TemporaryError as ex: