From b234ea65a7e5000f49fd292559418b1ae134d8b7 Mon Sep 17 00:00:00 2001 From: ogranada Date: Fri, 16 Mar 2018 08:59:15 -0500 Subject: [PATCH] Update in download attachment --- shotgun_api3/shotgun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shotgun_api3/shotgun.py b/shotgun_api3/shotgun.py index 7c968c4b8..9e05f2f91 100755 --- a/shotgun_api3/shotgun.py +++ b/shotgun_api3/shotgun.py @@ -2486,7 +2486,7 @@ def download_attachment(self, attachment=False, file_path=None, attachment_id=No try: request = urllib2.Request(url) request.add_header('user-agent', "; ".join(self._user_agents)) - req = urllib2.urlopen(request) + req = urllib2.urlopen(request, cafile=os.environ.get('SHOTGUN_API_CACERTS', None)) if file_path: shutil.copyfileobj(req, fp) else: