SAAS-503: PYPO -> Use the REST API to download files
Fixed disabling SSL verication
This commit is contained in:
parent
2ae45bd005
commit
024150f023
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ class PypoFile(Thread):
|
|||
url = media_item['download_url']
|
||||
|
||||
with open(dst, "wb") as handle:
|
||||
response = requests.get(url, auth=requests.auth.HTTPBasicAuth(username, ''), stream=True)
|
||||
response = requests.get(url, auth=requests.auth.HTTPBasicAuth(username, ''), stream=True, verify=False)
|
||||
|
||||
if not response.ok:
|
||||
raise Exception("%s - Error occurred downloading file" % response.status_code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue