From 0b4df768bac61d246a0e13397095e451e5af2887 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 9 May 2022 23:50:56 -0700 Subject: [PATCH] hack to check for generator type cause too lazy to import --- archivebox/logging_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/logging_util.py b/archivebox/logging_util.py index 542e2b78..acf62511 100644 --- a/archivebox/logging_util.py +++ b/archivebox/logging_util.py @@ -432,7 +432,7 @@ def log_archive_method_finished(result: "ArchiveResult"): # Prettify error output hints string and limit to five lines hints = getattr(result.output, 'hints', None) or () if hints: - if isinstance(hints, (list, tuple)): + if isinstance(hints, (list, tuple, type(_ for _ in ()))): hints = (hint.decode() for hint in hints if isinstance(hint, bytes)) else: if isinstance(hints, bytes):