no need to duplicate this long error message

This commit is contained in:
hroff-1902 2019-06-11 13:47:04 +03:00
parent db6ccef6bd
commit dc7f883751

View File

@ -390,14 +390,11 @@ class Configuration(object):
exchange = config.get('exchange', {}).get('name').lower()
if not is_exchange_known(exchange):
exception_msg = f'Exchange "{exchange}" is not supported by ccxt ' \
f'and not known for the bot.\n' \
f'The following exchanges are supported by ccxt: ' \
f'{", ".join(known_exchanges())}'
logger.critical(exception_msg)
raise OperationalException(
exception_msg
f'Exchange "{exchange}" is not supported by ccxt '
f'and not known for the bot.\n'
f'The following exchanges are supported by ccxt: '
f'{", ".join(known_exchanges())}'
)
logger.info(f'Exchange "{exchange}" is supported by ccxt and known for the bot.')