fix: Add a default cmd value to handle case where the html cannot be retrieved
This commit is contained in:
parent
0307a96a47
commit
bf3ea42141
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue