diff --git a/CHANGES.rst b/CHANGES.rst index a519981865..3e0b712a24 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,8 @@ - (Hotfix) Specify sphinx versions to correctly work with sphinx_rtd_theme +- (Hotfix) Fixed bug that caused crash of sensfunc routines using + telluric grids in offline processing - (Hotfix) Fixed error when showing flats in Ginga when the fine correction is not performed - Implemented the upgraded GTC/OSIRIS+ - (Hotfix) keymap error when displaying GUIs diff --git a/pypeit/data/utils.py b/pypeit/data/utils.py index 2bb4ed63c1..afa106c166 100644 --- a/pypeit/data/utils.py +++ b/pypeit/data/utils.py @@ -69,7 +69,7 @@ """ import os import shutil -import urllib +import urllib.error import astropy.utils.data import github @@ -695,7 +695,12 @@ def _get_s3_hostname(): filepath = astropy.utils.data.download_file( remote_url, cache="update", timeout=10, pkgname="pypeit" ) - except (urllib.error.URLError, github.GithubException): + except ( + requests.exceptions.ConnectionError, + requests.exceptions.RequestException, + urllib.error.URLError, + github.GithubException + ): filepath = os.path.join(Paths.data, "s3_url.txt") # Open the file and return the URL