瀏覽代碼

no match on error

David 10 年之前
父節點
當前提交
00ee911bf5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      news.py

+ 1 - 0
news.py

@@ -36,6 +36,7 @@ class News():
         except Exception:
             print("ERROR parsing/downloading article")
             self.ERROR=True
+            self.MATCHES=False
             return
         a.nlp()
         a.authors=self.dedup([self.fix_author(value) for value in a.authors if not self.isComment(value) and not self.isNoise(value)])