only init if stake_currency is set

This commit is contained in:
Matthias 2018-07-22 14:48:06 +02:00
parent 2b297869a1
commit fae4c3a4e3

View File

@ -67,6 +67,7 @@ class Telegram(RPC):
self._updater: Updater = None self._updater: Updater = None
self._config = freqtrade.config self._config = freqtrade.config
self._init() self._init()
if self._config.get('stake_currency', None):
self._fiat_converter = CryptoToFiatConverter() self._fiat_converter = CryptoToFiatConverter()
def _init(self) -> None: def _init(self) -> None: