From 1e44b46b17cf3e0861f6b4fd49195c80a770f8a3 Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Fri, 10 Apr 2020 02:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneforall/modules/search/github_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oneforall/modules/search/github_api.py b/oneforall/modules/search/github_api.py index 9d66755..e87b39e 100644 --- a/oneforall/modules/search/github_api.py +++ b/oneforall/modules/search/github_api.py @@ -73,6 +73,8 @@ class GithubAPI(Search): logger.log('ERROR', e.args) break total_count = resp_json.get('total_count') + if not isinstance(total_count, int): + break if page * 100 > total_count: break if page * 100 > 1000: