From f705caa703646f3624d4e21273111627719c4dc4 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 21 May 2024 23:08:43 -0400 Subject: [PATCH] Specify timeout --- jdaviz/configs/default/plugins/about/about.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdaviz/configs/default/plugins/about/about.py b/jdaviz/configs/default/plugins/about/about.py index cc1338312e..7c00740dff 100644 --- a/jdaviz/configs/default/plugins/about/about.py +++ b/jdaviz/configs/default/plugins/about/about.py @@ -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 else: