mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 08:06:30 +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:
parent
606db3585c
commit
5f8e41b441
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user