Use new format for logging exceptions - dbus/network/__init__.py (#3195)
This commit is contained in:
parent
800fb683f8
commit
5af62a8834
|
@ -126,8 +126,10 @@ class NetworkManager(DBusInterface):
|
|||
except (AwesomeVersionException, KeyError):
|
||||
pass
|
||||
|
||||
_LOGGER.error("Version '%s' of NetworkManager is not supported!", self.version)
|
||||
raise HostNotSupportedError()
|
||||
raise HostNotSupportedError(
|
||||
f"Version '{self.version}' of NetworkManager is not supported!",
|
||||
_LOGGER.error,
|
||||
)
|
||||
|
||||
@dbus_connected
|
||||
async def update(self):
|
||||
|
|
Loading…
Reference in New Issue