mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
添加判断
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user