1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

add return value to 'PostProcessor._init_archive()'

This commit is contained in:
Mike Fährmann 2023-07-24 14:32:25 +02:00
parent 7cd5130e88
commit 6c9432165e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 3 additions and 2 deletions

View File

@ -45,5 +45,7 @@ class PostProcessor():
self.name, archive, exc.__class__.__name__, exc)
else:
self.log.debug("Using %s archive '%s'", self.name, archive)
return True
else:
self.archive = None
return False

View File

@ -22,8 +22,7 @@ class PythonPP(PostProcessor):
module = util.import_file(module_name)
self.function = getattr(module, function_name)
self._init_archive(job, options)
if self.archive:
if self._init_archive(job, options):
self.run = self.run_archive
events = options.get("event")