From 15cb4772d6c8353504c4dfdfc0c88bf1cf97fecc Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 16 Mar 2013 21:46:51 +0200 Subject: [PATCH] wpaspy: Fix exception handling in the test script Signed-hostap: Jouni Malinen --- wpaspy/test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wpaspy/test.py b/wpaspy/test.py index 2a5e409d9..493af7a67 100755 --- a/wpaspy/test.py +++ b/wpaspy/test.py @@ -29,8 +29,7 @@ def wpas_connect(): try: wpas = wpaspy.Ctrl(ctrl) return wpas - except wpactrl.error, error: - print "Error: ", error + except Exception, e: pass return None