GUI: Fix specific errors don't flush the queues

This commit is contained in:
deajan 2024-09-15 12:58:14 +02:00
parent de89e524dd
commit 60a74067a4

View file

@ -649,6 +649,8 @@ class NPBackupRunner:
f"Runner: Function {operation} failed with: {exc}", level="error"
)
logger.error("Trace:", exc_info=True)
self.stdout.put(None)
self.stderr.put(None)
# In case of error, we really need to write metrics
# pylint: disable=E1101 (no-member)
metric_writer(self.repo_config, False, None, fn.__name__, self.dry_run)