aboutsummaryrefslogtreecommitdiffstats
path: root/wpaspy/test.py
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-03-16 19:46:51 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-16 19:46:51 (GMT)
commit15cb4772d6c8353504c4dfdfc0c88bf1cf97fecc (patch)
tree7e8c771dd4e4ba48d93a7752931769800ccadf4c /wpaspy/test.py
parentb2a12c4f93f77d5be8682c8ab60f13857d1cfa5e (diff)
downloadhostap-15cb4772d6c8353504c4dfdfc0c88bf1cf97fecc.zip
hostap-15cb4772d6c8353504c4dfdfc0c88bf1cf97fecc.tar.gz
hostap-15cb4772d6c8353504c4dfdfc0c88bf1cf97fecc.tar.bz2
wpaspy: Fix exception handling in the test script
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpaspy/test.py')
-rwxr-xr-xwpaspy/test.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/wpaspy/test.py b/wpaspy/test.py
index 2a5e409..493af7a 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