1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-18 04:11:57 +02:00

quote URLs in failure message hint output to make copy-pasting easier

This commit is contained in:
Nick Sweeting
2024-01-03 20:11:30 -08:00
parent db2984e47b
commit b9e05b2abe

View File

@@ -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
)