Skip to content

Commit

Permalink
Specify timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed May 22, 2024
1 parent 1189f67 commit f705caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/configs/default/plugins/about/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def latest_version_from_pypi(package_name):
"""Version info for given package or `None`."""
url = "https://pypi.org/pypi/%s/json" % package_name
try:
r = requests.get(url)
r = requests.get(url, timeout=60)
except Exception: # nosec
pass

Check warning on line 45 in jdaviz/configs/default/plugins/about/about.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/configs/default/plugins/about/about.py#L44-L45

Added lines #L44 - L45 were not covered by tests
else:
Expand Down

0 comments on commit f705caa

Please sign in to comment.