Verify patch connection

This commit is contained in:
angelblue05 2018-12-22 02:49:35 -06:00
parent 5839075424
commit 9c01340af4

View file

@ -368,11 +368,15 @@ def get_objects(src, filename):
LOG.info("From %s to %s", src, path.decode('utf-8'))
try:
response = requests.get(src, stream=True, verify=False)
response = requests.get(src, stream=True, verify=True)
response.raise_for_status()
except requests.exceptions.SSLError as error:
LOG.error(error)
response = requests.get(src, stream=True, verify=False)
except Exception as error:
raise
else:
dl = xbmcvfs.File(path, 'w')
dl.write(response.content)
dl.close()