mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 08:34:18 +01:00
summary: use lowercase in bitstamp url
This commit is contained in:
committed by
Michael Schmoock
parent
59bad754cb
commit
8529abd833
@@ -69,7 +69,7 @@ class PriceThread(threading.Thread):
|
||||
# NOTE: Bitstamp has a DNS/Proxy issues that can return 404
|
||||
# Workaround: retry up to 5 times with a delay
|
||||
for _ in range(5):
|
||||
r = requests.get('https://www.bitstamp.net/api/v2/ticker/BTC{}'.format(plugin.currency), proxies=self.proxies)
|
||||
r = requests.get('https://www.bitstamp.net/api/v2/ticker/btc{}'.format(plugin.currency.lower()), proxies=self.proxies)
|
||||
if not r.status_code == 200:
|
||||
time.sleep(1)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user