From 456e49fe355b4defc9f954c70467fddc7eb8a63a Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 24 Jul 2018 00:01:51 +0100 Subject: [PATCH] default fiat_currency to none --- freqtrade/rpc/telegram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 166979d25..a63422970 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -224,7 +224,7 @@ class Telegram(RPC): :return: None """ stake_cur = self._config['stake_currency'] - fiat_disp_cur = self._config['fiat_display_currency'] + fiat_disp_cur = self._config.get('fiat_display_currency', None) try: timescale = int(update.message.text.replace('/daily', '').strip()) except (TypeError, ValueError): @@ -257,7 +257,7 @@ class Telegram(RPC): :return: None """ stake_cur = self._config['stake_currency'] - fiat_disp_cur = self._config['fiat_display_currency'] + fiat_disp_cur = self._config.get('fiat_display_currency', None) try: stats = self._rpc_trade_statistics( @@ -296,7 +296,7 @@ class Telegram(RPC): def _balance(self, bot: Bot, update: Update) -> None: """ Handler for /balance """ try: - result = self._rpc_balance(self._config['fiat_display_currency']) + result = self._rpc_balance(self._config.get('fiat_display_currency', None)) output = '' for currency in result['currencies']: output += "*{currency}:*\n" \