1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-02-15 07:27:13 +00:00

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

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)