From: Jouni Malinen Date: Sat, 15 Feb 2020 15:48:29 +0000 (+0200) Subject: Fix exception checking in a wpa_supplicant P2P example script X-Git-Tag: hostap_2_10~1827 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b056275111f548c90e0f7bbdf2722461e29e6cdf;p=thirdparty%2Fhostap.git Fix exception checking in a wpa_supplicant P2P example script Signed-off-by: Jouni Malinen --- 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:"):