添加响应判断

This commit is contained in:
Jing Ling
2020-02-22 20:34:47 +08:00
parent 5ff1598d82
commit 7ccab37f47
+2
View File
@@ -26,6 +26,8 @@ class Gitee(Search):
except Exception as e:
logger.log('ERROR', e.args)
break
if not resp:
break
if resp.status_code != 200:
logger.log('ERROR', f'{self.source}模块搜索出错')
break