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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()