[postprocessor] update 'finalize' events

Add 'finalize-error' and 'finalize-success' events that trigger
depending on whether error(s) did or did not happen.

'finalize' itself now always triggers regardless of error status.
(was supposed to have the same behavior as the new 'finalize-success')
This commit is contained in:
Mike Fährmann
2023-08-10 19:46:37 +02:00
parent af4bdb62a7
commit 0ef1fcab20
5 changed files with 22 additions and 16 deletions

View File

@@ -88,7 +88,7 @@ class ZipPP(PostProcessor):
if self.delete:
util.remove_file(path)
def finalize(self, pathfmt, status):
def finalize(self, pathfmt):
if self.zfile:
self.zfile.close()