Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 01aea73

Browse files
authored
Merge pull request #497 from OpenBazaar/fix-nan
Fix NaN Issue
2 parents 7a37c60 + 66d2e9b commit 01aea73

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

market/btcprice.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__author__ = 'ddustin'
22

3+
import certifi
34
import json
45
from threading import Thread, Condition
56
from urllib2 import Request, urlopen, URLError
@@ -82,7 +83,7 @@ def loadPrices(self):
8283
@staticmethod
8384
def dictForUrl(url):
8485
request = Request(url)
85-
result = urlopen(request, timeout=5).read()
86+
result = urlopen(request, cafile=certifi.where(), timeout=5).read()
8687
return json.loads(result)
8788

8889
def loadbitcoinaverage(self):

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ miniupnpc==1.9
1414
bleach==1.4.2
1515
html5lib==0.9999999
1616
service_identity
17+
certifi

0 commit comments

Comments
 (0)