default fiat_currency to none

This commit is contained in:
Matthias 2018-07-24 00:01:51 +01:00
parent f54ac5a8de
commit 456e49fe35

View File

@ -224,7 +224,7 @@ class Telegram(RPC):
:return: None :return: None
""" """
stake_cur = self._config['stake_currency'] 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: try:
timescale = int(update.message.text.replace('/daily', '').strip()) timescale = int(update.message.text.replace('/daily', '').strip())
except (TypeError, ValueError): except (TypeError, ValueError):
@ -257,7 +257,7 @@ class Telegram(RPC):
:return: None :return: None
""" """
stake_cur = self._config['stake_currency'] 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: try:
stats = self._rpc_trade_statistics( stats = self._rpc_trade_statistics(
@ -296,7 +296,7 @@ class Telegram(RPC):
def _balance(self, bot: Bot, update: Update) -> None: def _balance(self, bot: Bot, update: Update) -> None:
""" Handler for /balance """ """ Handler for /balance """
try: try:
result = self._rpc_balance(self._config['fiat_display_currency']) result = self._rpc_balance(self._config.get('fiat_display_currency', None))
output = '' output = ''
for currency in result['currencies']: for currency in result['currencies']:
output += "*{currency}:*\n" \ output += "*{currency}:*\n" \