Parcourir la source

wpaspy: Fix exception handling in the test script

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 12 ans
Parent
commit
15cb4772d6
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      wpaspy/test.py

+ 1 - 2
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