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

This commit is contained in:
joren485 2018-07-31 18:26:44 +02:00 committed by Abhijeet Kasurde
parent 09eac6bab9
commit b3c054c55e

View file

@ -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.")