fix empty stake currency problem

This commit is contained in:
Matthias 2020-02-29 14:56:36 +01:00
parent 5277d71913
commit 60579485e5

View File

@ -332,7 +332,8 @@ class Exchange:
logger.warning(f"Pair {pair} is restricted for some users on this exchange." logger.warning(f"Pair {pair} is restricted for some users on this exchange."
f"Please check if you are impacted by this restriction " f"Please check if you are impacted by this restriction "
f"on the exchange and eventually remove {pair} from your whitelist.") f"on the exchange and eventually remove {pair} from your whitelist.")
if not self.get_pair_quote_currency(pair) == self._config['stake_currency']: if (self._config['stake_currency'] and
not self.get_pair_quote_currency(pair) == self._config['stake_currency']):
invalid_pairs.append(pair) invalid_pairs.append(pair)
if invalid_pairs: if invalid_pairs:
raise OperationalException( raise OperationalException(