On défini une valeur par défaut
This commit is contained in:
parent
4e9ac573ac
commit
7120da3e28
@ -265,7 +265,9 @@ class TwoStepsExtractorNoPause(TwoStepsExtractor):
|
|||||||
ignore_404=True
|
ignore_404=True
|
||||||
):
|
):
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user