mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 19:16:29 +00:00
Fix sentry logs with None (#2738)
* Fix sentry logs with None * change comment
This commit is contained in:
parent
cb3e2dab71
commit
379cef9e35
@ -13,9 +13,14 @@ class HassioError(Exception):
|
||||
logger: Optional[Callable[..., None]] = None,
|
||||
) -> None:
|
||||
"""Raise & log."""
|
||||
if logger:
|
||||
if logger is not None and message is not None:
|
||||
logger(message)
|
||||
super().__init__(message)
|
||||
|
||||
# Init Base
|
||||
if message is not None:
|
||||
super().__init__(message)
|
||||
else:
|
||||
super().__init__()
|
||||
|
||||
|
||||
class HassioNotSupportedError(HassioError):
|
||||
|
Loading…
x
Reference in New Issue
Block a user