1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Use new format for logging exceptions - store/repository.py (#3212)

This commit is contained in:
Samprit | Nekrós
2021-10-08 13:16:52 +05:30
committed by GitHub
parent 8c59e6d05a
commit 4b0278fee8

View File

@@ -112,7 +112,6 @@ class Repository(CoreSysAttributes):
async def remove(self) -> None:
"""Remove add-on repository."""
if self.type != StoreType.GIT:
_LOGGER.error("Can't remove built-in repositories!")
raise StoreError()
raise StoreError("Can't remove built-in repositories!", _LOGGER.error)
await self.git.remove()