From df4c3a34b197c6cb1e147275e0cb35d9d8683e52 Mon Sep 17 00:00:00 2001 From: JerryYan <792602257@qq.com> Date: Sun, 12 Apr 2020 20:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.py b/api.py index e351cd1..4df0684 100644 --- a/api.py +++ b/api.py @@ -99,6 +99,8 @@ class XiGuaLiveApi: return None def postJson(self, url, data, **kwargs): + if "timeout" not in kwargs: + kwargs["timeout"] = 10 try: p = self.s.post(url, data, **kwargs) except Exception as e: