mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-22 15:44:20 +01:00
raw response fix
This commit is contained in:
committed by
Christian Decker
parent
7c392cb2dd
commit
6b1f7901bc
@@ -36,7 +36,7 @@ class PriceThread(threading.Thread):
|
|||||||
try:
|
try:
|
||||||
r = requests.get('https://apiv2.bitcoinaverage.com/convert/global'
|
r = requests.get('https://apiv2.bitcoinaverage.com/convert/global'
|
||||||
'?from=BTC&to={}&amount=1'.format(plugin.currency))
|
'?from=BTC&to={}&amount=1'.format(plugin.currency))
|
||||||
plugin.fiat_per_btc = json.loads(r.content)['price']
|
plugin.fiat_per_btc = json.loads(r.content.decode())['price']
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
# Six hours is more than often enough for polling
|
# Six hours is more than often enough for polling
|
||||||
|
|||||||
Reference in New Issue
Block a user