mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
添加响应判断
This commit is contained in:
@@ -26,6 +26,8 @@ class Gitee(Search):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.log('ERROR', e.args)
|
logger.log('ERROR', e.args)
|
||||||
break
|
break
|
||||||
|
if not resp:
|
||||||
|
break
|
||||||
if resp.status_code != 200:
|
if resp.status_code != 200:
|
||||||
logger.log('ERROR', f'{self.source}模块搜索出错')
|
logger.log('ERROR', f'{self.source}模块搜索出错')
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user