On défini une valeur par défaut

This commit is contained in:
Jean-Marie Favreau 2024-11-29 11:44:40 +01:00
parent 4e9ac573ac
commit 7120da3e28

View File

@ -266,6 +266,8 @@ class TwoStepsExtractorNoPause(TwoStepsExtractor):
): ):
if hasattr(self.downloader, "pause"): if hasattr(self.downloader, "pause"):
pause = self.downloader.pause pause = self.downloader.pause
else:
pause = False
self.downloader.pause = False self.downloader.pause = False
result = super().extract(content, url, url_human, default_values, published, only_future, ignore_404) result = super().extract(content, url, url_human, default_values, published, only_future, ignore_404)
self.downloader.pause = pause self.downloader.pause = pause