mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-17 06:06:29 +00:00
Don't send DBusProgramError to sentry (#2294)
* Don't send DBusProgramError to sentry * Add message
This commit is contained in:
parent
056926242f
commit
621eb4c4c0
@ -4,7 +4,7 @@ from typing import Any, Awaitable, Dict
|
|||||||
|
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
|
|
||||||
from ...exceptions import DBusError, DBusInterfaceError
|
from ...exceptions import DBusError, DBusInterfaceError, DBusProgramError
|
||||||
from ...utils.gdbus import DBus
|
from ...utils.gdbus import DBus
|
||||||
from ..const import (
|
from ..const import (
|
||||||
DBUS_ATTR_CONNECTION_ENABLED,
|
DBUS_ATTR_CONNECTION_ENABLED,
|
||||||
@ -105,6 +105,9 @@ class NetworkManager(DBusInterface):
|
|||||||
# Connect to interface
|
# Connect to interface
|
||||||
try:
|
try:
|
||||||
await interface.connect()
|
await interface.connect()
|
||||||
|
except DBusProgramError as err:
|
||||||
|
_LOGGER.warning("Can't process %s: %s", device, err)
|
||||||
|
continue
|
||||||
except Exception as err: # pylint: disable=broad-except
|
except Exception as err: # pylint: disable=broad-except
|
||||||
_LOGGER.exception("Error while processing interface: %s", err)
|
_LOGGER.exception("Error while processing interface: %s", err)
|
||||||
sentry_sdk.capture_exception(err)
|
sentry_sdk.capture_exception(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user