模块优化

This commit is contained in:
Jing Ling
2020-08-11 14:50:30 +08:00
parent b7de3f8ea6
commit b7e9c7e781
17 changed files with 94 additions and 173 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ class ZoomEyeAPI(Search):
data = {'username': self.user, 'password': self.pwd}
resp = self.post(url=url, json=data)
if not resp:
logger.log('FATAL', f'{self.source} module login failed, can not get access token')
logger.log('FATAL', f'{self.source} module login failed,'
f' can not get access token')
exit(1)
data = resp.json()
if resp.status_code == 200: