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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user