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: