From 9b4bbb24503a2f293402ecd1e89ebe6782511fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sun, 16 Feb 2020 23:51:04 +0100 Subject: [PATCH] fix: Missing cast --- lookyloo/lookyloo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index 267fa94..ba803e3 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -92,7 +92,7 @@ class Lookyloo(): if isinstance(report_dir, Path): report_dir = str(report_dir) if (Path(report_dir) / 'error.txt').exists(): - with (report_dir / 'error.txt').open() as _error: + with (Path(report_dir) / 'error.txt').open() as _error: self.logger.warning(f'Capture in ({report_dir}) has an error: {_error.read()}, see https://splash.readthedocs.io/en/stable/scripting-ref.html#splash-go') cached = self.redis.hgetall(report_dir) if all(key in cached.keys() for key in ['uuid', 'title', 'timestamp', 'url', 'redirects']):