fix archive_dot_org repsonse parsing bytes vs str bug

This commit is contained in:
Nick Sweeting 2024-10-01 00:18:38 -07:00
parent 71d215367b
commit 94123ca68c
No known key found for this signature in database

View file

@ -58,7 +58,7 @@ def save_archive_dot_org(link: Link, out_dir: Optional[Path]=None, timeout: int=
status = 'succeeded'
timer = TimedProgress(timeout, prefix=' ')
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)
if content_location:
archive_org_url = content_location[0]