Resolve E722 do not use bare except 63/90763/2
authorThanh Ha <zxiiro@gmail.com>
Fri, 26 Jun 2020 15:17:14 +0000 (11:17 -0400)
committerJamo Luhrsen <jluhrsen@gmail.com>
Fri, 26 Jun 2020 18:32:45 +0000 (18:32 +0000)
commite6ed5f7a86bb71831eb9d9b4d6d4fe643a0c6b52
treef9b46e4e7e6e6865fbdc07ba79fb0b758b2d44f6
parentdf095744c4197e89b297b4782e5cf869d2138b1f
Resolve E722 do not use bare except

Bare exceptions violates one of Pythons idioms that bare exceptions
should not be used. The reason for this is that a bare except catches
all exceptions and can make programming errors look like runtime
problems making debugging more difficult.

Change-Id: I7006639302ef2efc9301c384c19218dd6783c825
Ref: https://docs.python.org/3.1/howto/doanddont.html#except
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
csit/libraries/AAAJsonUtils.py
csit/libraries/ClusterStateLibrary.py
tools/distchanges/gerritquery.py
tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py
tools/odl-mdsal-clustering-tests/clustering-performance-test/shard_perf_test.py