mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Fix early Sentry reporting
If an exception occures between when Sentry gets initialized and the Supervisor state is first set to INITIALIZED (which is only later the case in `coresys.core.connect()`), the error filtering tries to collect context which is not ready yet. Make sure that we exit filtering early just like in the INITIALIZED state.
This commit is contained in:
parent
c5d4ebcd48
commit
82ef62e7a3
@ -60,7 +60,7 @@ def filter_data(coresys: CoreSys, event: dict, hint: dict) -> dict:
|
||||
)
|
||||
|
||||
# Not full startup - missing information
|
||||
if coresys.core.state in (CoreState.INITIALIZE, CoreState.SETUP):
|
||||
if coresys.core.state in (None, CoreState.INITIALIZE, CoreState.SETUP):
|
||||
return event
|
||||
|
||||
# List installed addons
|
||||
|
Loading…
x
Reference in New Issue
Block a user