Use dbus.exceptions of non-existent dbus.Exceptions (#43495)
This commit is contained in:
parent
09eac6bab9
commit
b3c054c55e
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ class Nmcli(object):
|
|||
try:
|
||||
proxy = bus.get_object(service_name, "/org/freedesktop/NetworkManager/Settings")
|
||||
settings = dbus.Interface(proxy, "org.freedesktop.NetworkManager.Settings")
|
||||
except dbus.Exceptions.DBusException as e:
|
||||
except dbus.exceptions.DBusException as e:
|
||||
self.module.fail_json(msg="Unable to read Network Manager settings from DBus system bus: %s" % to_native(e),
|
||||
details="Please check if NetworkManager is installed and"
|
||||
" service network-manager is started.")
|
||||
|
|
Loading…
Reference in a new issue