mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-02-20 00:56:07 +08:00
fix: Add a default cmd value to handle case where the html cannot be retrieved
This commit is contained in:
parent
0307a96a47
commit
bf3ea42141
@ -65,6 +65,7 @@ def save_readability(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEO
|
||||
# Readability Docs: https://github.com/mozilla/readability
|
||||
|
||||
status = 'succeeded'
|
||||
cmd = []
|
||||
timer = TimedProgress(timeout, prefix=' ')
|
||||
try:
|
||||
document = get_html(link, out_dir)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user