mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-24 19:54:25 -04:00
fix archive_dot_org repsonse parsing bytes vs str bug
This commit is contained in:
parent
71d215367b
commit
94123ca68c
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def save_archive_dot_org(link: Link, out_dir: Optional[Path]=None, timeout: int=
|
||||||
status = 'succeeded'
|
status = 'succeeded'
|
||||||
timer = TimedProgress(timeout, prefix=' ')
|
timer = TimedProgress(timeout, prefix=' ')
|
||||||
try:
|
try:
|
||||||
result = run(cmd, cwd=str(out_dir), timeout=timeout)
|
result = run(cmd, cwd=str(out_dir), timeout=timeout, text=True)
|
||||||
content_location, errors = parse_archive_dot_org_response(result.stdout)
|
content_location, errors = parse_archive_dot_org_response(result.stdout)
|
||||||
if content_location:
|
if content_location:
|
||||||
archive_org_url = content_location[0]
|
archive_org_url = content_location[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue