Skip to content

Commit

Permalink
Fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
lyriccoder committed Jul 13, 2020
1 parent e66e288 commit c2fd8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aibolit/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def run_thread(files, args):

def get_versions(pkg_name):
url = f'https://pypi.python.org/pypi/{pkg_name}/json'
releases = json.loads(requests.get(url).content)['releases']
releases = json.loads(requests.get(url, timeout=0.01).content)['releases']
return sorted(releases, key=parse_version, reverse=True)


Expand Down

0 comments on commit c2fd8e2

Please sign in to comment.