]> www.infradead.org Git - users/dwmw2/qemu.git/commit
python/qemu/qmp.py: re-raise OSError when encountered
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 17:51:22 +0000 (13:51 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 20 Oct 2020 18:58:47 +0000 (14:58 -0400)
commitd5cca076c3a1ac55f25792fae4fae2b0b1f71e8e
tree0a29e77131ac4baab5f87a44469a57f3f7c77bb9
parentc3a404d3be115f2429a6608a1bbd74623db294bb
python/qemu/qmp.py: re-raise OSError when encountered

Nested if conditions don't change when the exception block fires; we
need to explicitly re-raise the error if we didn't intend to capture and
suppress it.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201009175123.249009-3-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/qmp.py