From: Jouni Malinen Date: Sat, 16 Mar 2013 19:46:51 +0000 (+0200) Subject: wpaspy: Fix exception handling in the test script X-Git-Tag: aosp-kk-from-upstream~450 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15cb4772d6c8353504c4dfdfc0c88bf1cf97fecc;p=thirdparty%2Fhostap.git wpaspy: Fix exception handling in the test script Signed-hostap: Jouni Malinen --- 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