diff --git a/wpa_supplicant/examples/p2p/p2p_connect.py b/wpa_supplicant/examples/p2p/p2p_connect.py index 6e3d94e20..2f62e9c94 100644 --- a/wpa_supplicant/examples/p2p/p2p_connect.py +++ b/wpa_supplicant/examples/p2p/p2p_connect.py @@ -108,7 +108,7 @@ class P2P_Connect(): self.path = None try: self.path = self.wpas.GetInterface(ifname) - except: + except dbus.DBusException as exc: if not str(exc).startswith( self.wpas_dbus_interface + \ ".InterfaceUnknown:"):