mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 13:28:29 +00:00
quote URLs in failure message hint output to make copy-pasting easier
This commit is contained in:
parent
db2984e47b
commit
b9e05b2abe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue