mirror of https://github.com/CIRCL/lookyloo
fix: Avoid passing a referer to None, causing URLscan to fail.
parent
a48c6e0bd6
commit
8caa45a74d
|
@ -178,7 +178,7 @@ class Lookyloo():
|
|||
ct = self.get_crawled_tree(capture_uuid)
|
||||
to_return = {'url': ct.root_url, 'title': ct.root_hartree.har.initial_title,
|
||||
'capture_time': ct.start_time.isoformat(), 'user_agent': ct.user_agent,
|
||||
'referer': ct.referer}
|
||||
'referer': ct.referer if ct.referer else ''}
|
||||
return to_return
|
||||
|
||||
def get_meta(self, capture_uuid: str, /) -> Dict[str, str]:
|
||||
|
|
Loading…
Reference in New Issue