Skip to content

Commit

Permalink
Merge pull request #100 from sot/fix-timeout
Browse files Browse the repository at this point in the history
Add timeout error catch that occurs on linux
  • Loading branch information
taldcroft authored Oct 25, 2020
2 parents b1b965d + b44e567 commit fc23ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xija/get_model_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_github_version(url: str = CHANDRA_MODELS_URL,
"""
try:
req = requests.get(url, timeout=timeout)
except requests.ConnectTimeout:
except (requests.ConnectTimeout, requests.ReadTimeout):
return None

if req.status_code != requests.codes.ok:
Expand Down

0 comments on commit fc23ed6

Please sign in to comment.