From 39c7d142640c20fb2193916dddc4faca9202dc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 8 Sep 2021 12:50:56 +0200 Subject: [PATCH] fix: make mypy happy --- website/web/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/web/__init__.py b/website/web/__init__.py index 1f5c7664..6d64ec2a 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -500,7 +500,7 @@ def bulk_captures(base_tree_uuid: str): 'referer': ct.redirects[-1] if ct.redirects else ct.root_url, 'user_agent': ct.user_agent, 'parent': base_tree_uuid, - 'listing': False if cache.no_index else True + 'listing': False if cache and cache.no_index else True } new_capture_uuid = lookyloo.enqueue_capture(capture, source='web', user=user, authenticated=flask_login.current_user.is_authenticated) bulk_captures.append((new_capture_uuid, url))