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)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 27 Aug 2019 20:23:29 +0000 (16:23 -0400)
commit4c4935bf825b84aeffa36234e95492fc6d2e9920
treec853a5fb586a66ac3e86f6f9084bc1311c73e6e2
parent6a4dbecc89debb548aeb24d49e2a8a500c03f3e7
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.025198 seconds and 4 git commands to generate.