From 7692757091e6c0f5c90231de4ae06274c2623b00 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 14 Mar 2019 19:17:23 +0800 Subject: [PATCH] Api: Fix showing "HEADERS incomplete" --- api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index ab755f3..4ecc8d8 100644 --- a/api.py +++ b/api.py @@ -163,7 +163,11 @@ class XiGuaLiveApi: if "data" not in d or "extra" not in d or "cursor" not in d["extra"]: if DEBUG: print(d) - self.apiChangedError("数据结构改变,请与我联系") + if "base_resp" in d: + if d["base_resp"]["status_code"] != 10038: + print(d["base_resp"]["status_message"]) + else: + self.apiChangedError("数据结构改变,请与我联系") return else: self._cursor = d["extra"]["cursor"]