]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpaspy: Fix exception handling in the test script
authorJouni Malinen <j@w1.fi>
Sat, 16 Mar 2013 19:46:51 +0000 (21:46 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 16 Mar 2013 19:46:51 +0000 (21:46 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

wpaspy/test.py

index 2a5e409d9baacbd3cdf91aa725934d586c29d7f5..493af7a67ad8043c707c691ebeaab3e97ad42aee 100755 (executable)
@@ -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