Catch CancelledError when setting up components (#88635)
* Catch CancelledError when setting up components * Catch CancelledError when setting up components * Also catch SystemExit
This commit is contained in:
@@ -463,7 +463,8 @@ class ConfigEntry:
|
||||
|
||||
await self._async_process_on_unload()
|
||||
return
|
||||
except Exception: # pylint: disable=broad-except
|
||||
# pylint: disable-next=broad-except
|
||||
except (asyncio.CancelledError, SystemExit, Exception):
|
||||
_LOGGER.exception(
|
||||
"Error setting up entry %s for %s", self.title, integration.domain
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user