python: fix all "do not use bare 'except'" warnings
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 27 Aug 2019 04:57:30 +0000 (00:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:22 +0000 (11:58 -0400)
commit5760d5715d0cd0bfadc233aff06d50f7a11390b7
tree17c9c536f4007ca60d2bebd40422abd06ed507f5
parent426c119fd39ee039d6523ec2c0e589ed141598f4
python: fix all "do not use bare 'except'" warnings

I wasn't sure why that mattered, but I found this explanation pretty
good:

  https://help.semmle.com/wiki/pages/viewpage.action?pageId=29394005

In short, we don't want to catch KeyboardInterrupt and SystemExit.

Change-Id: I0ee20f45ac715a0477c867960cfaea511518171f
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reported-by: flake8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1980
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/component_descriptor.py
src/bindings/python/bt2/bt2/field.py
src/bindings/python/bt2/bt2/message_iterator.py
src/bindings/python/bt2/bt2/value.py
This page took 0.025295 seconds and 4 git commands to generate.