Add currency information to 'no data received' message
This commit is contained in:
parent
f02e90ecd8
commit
a08d5f07dc
|
@ -57,7 +57,7 @@ class Coins(Plugin):
|
||||||
|
|
||||||
data = requests.get(self.API_URL.format(crypto=crypto, market=market, currency=currency))
|
data = requests.get(self.API_URL.format(crypto=crypto, market=market, currency=currency))
|
||||||
if not data:
|
if not data:
|
||||||
return '\x02[{}]\x02 No data received'.format(crypto)
|
return '\x02[{}]\x02 No data received for currency {}'.format(crypto, currency)
|
||||||
|
|
||||||
to_currency = self.CURRENCIES[currency]
|
to_currency = self.CURRENCIES[currency]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user