Add currency information to 'no data received' message

This commit is contained in:
Nils Schweinsberg 2017-10-15 03:56:19 +02:00
parent f02e90ecd8
commit a08d5f07dc

View File

@ -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]