mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Workaround some pycurl.error issues
In my experiments, pycurl.error issues [1][2] do not appear if no 30x redirection involved. Tested with https://github.com/tornadoweb/tornado/files/2624772/nv.log [1] https://github.com/tornadoweb/tornado/issues/2542 [2] https://github.com/curl/curl/issues/3324
This commit is contained in:
parent
5af558d214
commit
6c6aff99b1
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
from .simple_json import simple_json
|
||||
|
||||
PYPI_URL = 'https://pypi.python.org/pypi/%s/json'
|
||||
PYPI_URL = 'https://pypi.org/pypi/%s/json'
|
||||
|
||||
def _version_from_json(data):
|
||||
return data['info']['version']
|
||||
|
|
Loading…
Add table
Reference in a new issue