chg: Fix mypy, bump deps

pull/79/head
Raphaël Vinot 2020-04-20 16:52:46 +02:00
parent a0c906d3dc
commit b1034739ad
2 changed files with 7 additions and 4 deletions

View File

@ -111,9 +111,12 @@ class Lookyloo():
else:
self.vt.url_lookup(ct.root_hartree.har.first_url, force)
def get_modules_responses(self, capture_dir: Path) -> Dict:
def get_modules_responses(self, capture_dir: Path) -> Optional[Dict]:
ct = self._load_pickle(capture_dir / 'tree.pickle')
to_return = {}
if not ct:
self.logger.warning('Unable to get the modules responses unless the tree ({capture_dir}) is cached.')
return None
to_return: Dict[str, Any] = {}
if hasattr(self, 'vt') and self.vt.available:
to_return['vt'] = {}
if ct.redirects:

4
poetry.lock generated
View File

@ -305,7 +305,7 @@ publicsuffix2 = "^2.20191221"
six = "^1.14.0"
[package.source]
reference = "1d7f7a93aa1a216672e32aa3c494ecf2ed865c07"
reference = "7ed43558d8be42e5ec8e114ba6c5714548a2fec4"
type = "git"
url = "https://github.com/viper-framework/har2tree.git"
[[package]]
@ -872,7 +872,7 @@ scrapy = "^1.8.0"
scrapy-splash = "^0.7.2"
[package.source]
reference = "061bf90327a6052801416f786f544c95b310dec2"
reference = "5e973cd2d4539a6787f7ad42f03e109ed693aeb9"
type = "git"
url = "https://github.com/viper-framework/ScrapySplashWrapper.git"
[[package]]