1
0
Fork 0
mirror of synced 2024-06-28 02:50:24 +12:00

fix: Add a default cmd value to handle case where the html cannot be retrieved

This commit is contained in:
Cristian 2020-08-27 09:51:33 -05:00
parent 0307a96a47
commit bf3ea42141

View file

@ -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)