Skip to content

Commit

Permalink
Add timeout error catch that occurs on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Oct 25, 2020
1 parent b1b965d commit b44e567
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 b44e567

Please sign in to comment.