Skip to content
Permalink
Browse files

BF: if news check times out then ignore it

  • Loading branch information...
peircej committed Sep 6, 2019
1 parent 8ddab41 commit 63aa7e095edfe8b08fe18ace6a1ad577b63d2e08
Showing with 1 addition and 1 deletion.
  1. +1 −1 psychopy/app/connections/news.py
@@ -22,7 +22,7 @@ def getNewsItems(app=None):
url = newsURL + "news_items.json"
try:
resp = requests.get(url, timeout=0.5)
except requests.ConnectionError:
except (requests.ConnectionError, requests.exceptions.ReadTimeout):
return None
if resp.status_code == 200:
try:

0 comments on commit 63aa7e0

Please sign in to comment.
You can’t perform that action at this time.