Don't raise when removing non-existing cloud backup (#133429)

This commit is contained in:
Erik Montnemery 2024-12-17 17:47:17 +01:00 committed by GitHub
parent 3341e3d95b
commit 89eda9e068
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ class CloudBackupAgent(BackupAgent):
:param backup_id: The ID of the backup that was returned in async_list_backups.
"""
if not await self.async_get_backup(backup_id):
raise BackupAgentError("Backup not found")
return
try:
await async_files_delete_file(

View File

@ -570,4 +570,4 @@ async def test_agents_delete_not_found(
response = await client.receive_json()
assert response["success"]
assert response["result"] == {"agent_errors": {"cloud.cloud": "Backup not found"}}
assert response["result"] == {"agent_errors": {}}