mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-20 05:11:40 +02:00
quote URLs in failure message hint output to make copy-pasting easier
This commit is contained in:
@@ -413,7 +413,7 @@ def log_archive_method_finished(result: "ArchiveResult"):
|
|||||||
"""
|
"""
|
||||||
# Prettify CMD string and make it safe to copy-paste by quoting arguments
|
# Prettify CMD string and make it safe to copy-paste by quoting arguments
|
||||||
quoted_cmd = ' '.join(
|
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
|
for arg in result.cmd
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user