Increase timeout for update check (#1726)

* Increase timeout for update check from 0.1 seconds to 3 seconds
* Closes #1678
This commit is contained in:
Kevin Chung
2020-11-18 02:54:15 -05:00
committed by GitHub
parent 9efa102487
commit 44a588869e

View File

@@ -53,7 +53,7 @@ def update_check(force=False):
"channel": app.CHANNEL,
}
check = requests.get(
"https://versioning.ctfd.io/check", params=params, timeout=0.1
"https://versioning.ctfd.io/check", params=params, timeout=3
).json()
except requests.exceptions.RequestException:
pass