diff --git a/newspaper/mthreading.py b/newspaper/mthreading.py index 92ebfb29..5a969df0 100644 --- a/newspaper/mthreading.py +++ b/newspaper/mthreading.py @@ -15,7 +15,6 @@ from .configuration import Configuration - class Worker(Thread): """ Thread executing tasks from a given tasks queue. @@ -105,4 +104,7 @@ def set(self, paper_list, threads_per_source=1): self.pool = ThreadPool(num_threads, timeout) for paper in self.papers: - self.pool.add_task(paper.download_articles) + try: + self.pool.add_task(paper.download_articles) + except AttributeError: + self.pool.add_task(paper.download)