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

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