From b9e05b2abe290c457e635556652590ee8e45b9a9 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 3 Jan 2024 20:11:30 -0800 Subject: [PATCH] quote URLs in failure message hint output to make copy-pasting easier --- 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 af98c3fb..f0155702 100644 --- a/archivebox/logging_util.py +++ b/archivebox/logging_util.py @@ -413,7 +413,7 @@ def log_archive_method_finished(result: "ArchiveResult"): """ # Prettify CMD string and make it safe to copy-paste by quoting arguments quoted_cmd = ' '.join( - '"{}"'.format(arg) if ' ' in arg else arg + '"{}"'.format(arg) if (' ' in arg) or (':' in arg) else arg for arg in result.cmd )