Skip to content

Commit

Permalink
Added certificate verification to decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Sep 21, 2019
1 parent ca27e98 commit 5d1f04b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sharppy/io/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen

import certifi
from datetime import datetime
import glob
import os
Expand Down Expand Up @@ -81,7 +81,7 @@ def _downloadFile(self):
# I can figure out a cleaner way to make sure the file (either local or URL)
# gets opened.
try:
f = urlopen(self._file_name)
f = urlopen(self._file_name, cafile=certifi.where())
except (ValueError, IOError):
try:
fname = self._file_name[7:] if self._file_name.startswith('file://') else self._file_name
Expand Down

0 comments on commit 5d1f04b

Please sign in to comment.