فهرست منبع

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

Cristian 5 سال پیش
والد
کامیت
bf3ea42141
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      archivebox/extractors/readability.py

+ 1 - 0
archivebox/extractors/readability.py

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