Old style exception won't work in Python 3

Old style exceptions were removed in Python 3.
This commit is contained in:
cclauss
2018-06-09 21:59:12 +02:00
committed by GitHub
parent 96e846aa82
commit 64189a0bec

View File

@@ -23,7 +23,7 @@ class TestHandshake(unittest.TestCase):
hs = Handshake(hs_file, bssid='A4:2B:8C:16:6B:3A') hs = Handshake(hs_file, bssid='A4:2B:8C:16:6B:3A')
try: try:
hs.analyze() hs.analyze()
except Exception, e: except Exception:
fail() fail()
def testHandshakeTshark(self): def testHandshakeTshark(self):