添加判断

This commit is contained in:
Jing Ling
2020-04-10 02:44:02 +08:00
committed by GitHub
parent e736f6b0b0
commit 1e44b46b17
+2
View File
@@ -73,6 +73,8 @@ class GithubAPI(Search):
logger.log('ERROR', e.args) logger.log('ERROR', e.args)
break break
total_count = resp_json.get('total_count') total_count = resp_json.get('total_count')
if not isinstance(total_count, int):
break
if page * 100 > total_count: if page * 100 > total_count:
break break
if page * 100 > 1000: if page * 100 > 1000: