1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-10 06:16:46 +00:00

Add timeout of 10 seconds to check.php request.

This commit is contained in:
Markus Birth 2017-09-01 17:57:34 +02:00
parent e9f5641363
commit 03dc98b4e2

View File

@ -75,7 +75,7 @@ class FotaCheck:
params["chnl"] = self.chnl params["chnl"] = self.chnl
#params["osvs"] = self.osvs #params["osvs"] = self.osvs
req = self.sess.get(url, params=params) req = self.sess.get(url, params=params, timeout=10)
if req.status_code == 200: if req.status_code == 200:
return req.text return req.text
else: else: