diff --git a/bin/async_capture.py b/bin/async_capture.py index 261116df..73df69aa 100755 --- a/bin/async_capture.py +++ b/bin/async_capture.py @@ -78,7 +78,6 @@ class AsyncCapture(AbstractManager): entries = self.lacus.get_capture(uuid) if entries['status'] == CaptureStatusPy.DONE: break - if uuid is None: self.unset_running() return diff --git a/website/web/__init__.py b/website/web/__init__.py index 91dc8d91..588c6a8d 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -857,7 +857,7 @@ def _prepare_capture_template(user_ua: Optional[str], predefined_url: Optional[s @app.route('/recapture/', methods=['GET']) def recapture(tree_uuid: str): cache = lookyloo.capture_cache(tree_uuid) - if cache: + if cache and hasattr(cache, 'url'): return _prepare_capture_template(user_ua=request.headers.get('User-Agent'), predefined_url=cache.url) flash(f'Unable to find the capture {tree_uuid} in the cache.', 'error')