Set 'currency' to 'usd' if fallback has been used
This commit is contained in:
parent
4da84cb452
commit
1e13cb5a37
@ -61,8 +61,9 @@ class Coins(Plugin):
|
||||
data = get_data(currency)
|
||||
if not data and currency != 'usd':
|
||||
data = get_data('usd')
|
||||
currency = 'usd'
|
||||
if not data:
|
||||
return '\x02[{}]\x02 No data received for currency {}'.format(crypto, currency)
|
||||
return '\x02[{}]\x02 No data received'.format(crypto)
|
||||
|
||||
to_currency = self.CURRENCIES[currency]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user