Capture errors correctly while copying backups (#5644)

Make sure we correctly capture errors while copying backups by using
the current job instance.
This commit is contained in:
Stefan Agner 2025-02-19 09:12:36 +01:00 committed by GitHub
parent 606db3585c
commit 5f8e41b441
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -529,7 +529,7 @@ class BackupManager(FileConfiguration, JobGroup):
backup, additional_locations
)
except BackupError as err:
self.sys_jobs.capture_error(err)
self.sys_jobs.current.capture_error(err)
if addon_start_tasks:
self._change_stage(BackupJobStage.AWAIT_ADDON_RESTARTS, backup)