We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ddab41 commit 63aa7e0Copy full SHA for 63aa7e0
psychopy/app/connections/news.py
@@ -22,7 +22,7 @@ def getNewsItems(app=None):
22
url = newsURL + "news_items.json"
23
try:
24
resp = requests.get(url, timeout=0.5)
25
- except requests.ConnectionError:
+ except (requests.ConnectionError, requests.exceptions.ReadTimeout):
26
return None
27
if resp.status_code == 200:
28
0 commit comments