python2.7+ ssl error fix
touchmii opened this issue · 0 comments
touchmii commented
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>
20:06:03 workflow.py:2082 INFO for assistance, see: https://github.com/deanishe/alfred-stackoverflow
20:06:03 workflow.py:2103 DEBUG ---------- finished in 1.307s ----------
modify web.py add two line
import ssl #add line 1
ssl._create_default_https_context = ssl._create_unverified_context #add line 2