summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJohn Snow2021-11-11 15:37:17 +0100
committerJohn Snow2021-11-16 20:26:36 +0100
commit47b43acd57e6e0b2910683f00a758adbc418dde6 (patch)
tree1eae9449046d3524397677f10b5afec753271d69 /docs
parentpython/aqmp: fix ConnectError string method (diff)
downloadqemu-47b43acd57e6e0b2910683f00a758adbc418dde6.tar.gz
qemu-47b43acd57e6e0b2910683f00a758adbc418dde6.tar.xz
qemu-47b43acd57e6e0b2910683f00a758adbc418dde6.zip
scripts/device-crash-test: simplify Exception handling
We don't need to handle KeyboardInterruptError specifically; we can instead tighten the scope of the broad Exception handlers to only catch "Exception", which has the effect of allowing all BaseException classes that do not inherit from Exception to be raised through. KeyboardInterruptError and a few other important ones are BaseExceptions, so this does the same thing with less code. Signed-off-by: John Snow <jsnow@redhat.com> Reported-by: Thomas Huth <thuth@redhat.com> Tested-by: Thomas Huth <thuth@redhat.com> Message-id: 20211111143719.2162525-4-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions