Fix exception checking in a wpa_supplicant P2P example script

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2020-02-15 17:48:29 +02:00
parent 91cce45226
commit b056275111

View 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:"):