From b3c054c55eb96420af747c54dcd9bc89f01a3fb8 Mon Sep 17 00:00:00 2001 From: joren485 Date: Tue, 31 Jul 2018 18:26:44 +0200 Subject: [PATCH] Use dbus.exceptions of non-existent dbus.Exceptions (#43495) --- lib/ansible/modules/net_tools/nmcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/net_tools/nmcli.py b/lib/ansible/modules/net_tools/nmcli.py index ac5511d7ae..90a989b050 100644 --- a/lib/ansible/modules/net_tools/nmcli.py +++ b/lib/ansible/modules/net_tools/nmcli.py @@ -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.")