Change to precise casing instead of .lower()

This commit is contained in:
Matthias
2022-04-02 19:33:20 +02:00
parent 40b4a9977e
commit 39d925c295
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.lower() == "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: