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

Commit 66d2e9b

Browse files
committed
Add explicit CA file check
1 parent 0296b9b commit 66d2e9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-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):

0 commit comments

Comments
 (0)