]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix exception checking in a wpa_supplicant P2P example script
authorJouni Malinen <j@w1.fi>
Sat, 15 Feb 2020 15:48:29 +0000 (17:48 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 15 Feb 2020 16:36:29 +0000 (18:36 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/examples/p2p/p2p_connect.py

index 6e3d94e20ca3e6377ce1779fe2d6e2f648b94eaf..2f62e9c94fc66ada6b92f251b9200d5cbccb1e38 100644 (file)
@@ -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:"):