]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Do not use bare "except"
authorTom Tromey <tromey@adacore.com>
Tue, 19 Mar 2024 17:11:05 +0000 (11:11 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 2 Apr 2024 16:58:37 +0000 (10:58 -0600)
commite2238b2e2061cffd2b7ae2894747205a56d2f775
tree3e99acfdba6187b2ebc5ef8a05b9fd09926acbe9
parent34b0776fd7385fcf1108981307d6d625f3565779
Do not use bare "except"

flake8 warns about a bare "except".  The docs point out that this will
also catch KeyboardInterrupt and SystemExit exceptions, which is
normally undesirable.  Using "except Exception" catches everything
reasonable, so this patch makes this change.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/python/lib/gdb/__init__.py
gdb/python/lib/gdb/styling.py