Fix netcraft flake8 issue

This commit is contained in:
L1ghtn1ng 2019-12-31 04:29:46 +00:00
parent 4f695faf2b
commit 6572f0fcfe

View file

@ -64,7 +64,7 @@ async def get_cookies(self, headers):
cookies = await self.create_cookies(headers['set-cookie'])
else:
cookies = {}
except Exception as e:
except Exception:
return {}
return cookies
@ -83,7 +83,7 @@ async def do_search(self):
await self.session.close()
break
self.base_url = await self.get_next(resp)
except Exception as e:
except Exception:
try:
await self.session.close()
except Exception: