Use new format for logging exceptions - dbus/network/__init__.py (#3195)

This commit is contained in:
Prathamesh Gawas 2021-10-05 01:50:39 +05:30 committed by GitHub
parent 800fb683f8
commit 5af62a8834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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):