Fix exception checking in a wpa_supplicant P2P example script
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
91cce45226
commit
b056275111
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class P2P_Connect():
|
||||||
self.path = None
|
self.path = None
|
||||||
try:
|
try:
|
||||||
self.path = self.wpas.GetInterface(ifname)
|
self.path = self.wpas.GetInterface(ifname)
|
||||||
except:
|
except dbus.DBusException as exc:
|
||||||
if not str(exc).startswith(
|
if not str(exc).startswith(
|
||||||
self.wpas_dbus_interface + \
|
self.wpas_dbus_interface + \
|
||||||
".InterfaceUnknown:"):
|
".InterfaceUnknown:"):
|
||||||
|
|
Loading…
Reference in a new issue