diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index 6deb20c3..58ae3755 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -178,7 +178,7 @@ def get_info(self, capture_uuid: str, /) -> Dict[str, Any]: 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]: