Skip to content

Instantly share code, notes, and snippets.

@fjmorazan
Created April 20, 2018 02:07
Show Gist options
  • Save fjmorazan/be628eee5278329b31c172a0236f4499 to your computer and use it in GitHub Desktop.
Save fjmorazan/be628eee5278329b31c172a0236f4499 to your computer and use it in GitHub Desktop.
KCP web page helper
francisco@hp-ks [~/KaOS-Community-Packages.github.io/helper]$ ./whelp -sm
Repositories kcp: range(0-100)
Traceback (most recent call last):
File "./whelp", line 326, in <module>
main()
File "./whelp", line 302, in main
synchronize(True)
File "./whelp", line 51, in synchronize
data_remote = get_repos_kcp()
File "./whelp", line 22, in get_repos_kcp
partial_repos = json.loads(urllib.urlopen(url_kcp % (page, per_page)).read())
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
context=self._context)
File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment