Improve exception wording on binance

This commit is contained in:
Matthias 2023-01-26 19:53:14 +01:00
parent c12fb1a49c
commit 73ef1d5191
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ class Binance(Exchange):
raise DDosProtection(e) from e
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
raise TemporaryError(
f'Could not set leverage due to {e.__class__.__name__}. Message: {e}') from e
f'Error in additional_exchange_init due to {e.__class__.__name__}. Message: {e}'
) from e
except ccxt.BaseError as e:
raise OperationalException(e) from e