Browse Source

no match on error

David 10 năm trước cách đây
mục cha
commit
00ee911bf5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)])