Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python2.7+ ssl error fix #11

Open
touchmii opened this issue Sep 30, 2022 · 0 comments
Open

python2.7+ ssl error fix #11

touchmii opened this issue Sep 30, 2022 · 0 comments

Comments

@touchmii
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant