mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-23 01:21:31 +01:00
tester: Remove too broad exception handling
Because too broad exception handling obscures errors while testing, it makes difficult to detect the bugs in tester.py or the test pattern files. This patch removes an except statement and avoid this problem. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
c9783734b4
commit
72a5b442b1
@ -529,9 +529,6 @@ class OfTester(app_manager.RyuApp):
|
||||
TestTimeout, TestReceiveError) as err:
|
||||
result = [TEST_ERROR, str(err)]
|
||||
result_type = str(err).split(':', 1)[0]
|
||||
except Exception:
|
||||
result = [TEST_ERROR, RYU_INTERNAL_ERROR]
|
||||
result_type = RYU_INTERNAL_ERROR
|
||||
finally:
|
||||
self.ingress_event = None
|
||||
for tid in self.ingress_threads:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user