mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-09 12:21:57 -04: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
|
# 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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue