Use dbus.exceptions of non-existent dbus.Exceptions (#43495)

pull/42965/merge
joren485 6 years ago committed by Abhijeet Kasurde
parent 09eac6bab9
commit b3c054c55e

@ -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…
Cancel
Save