aboutsummaryrefslogtreecommitdiff
path: root/scripts/qmp
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-06-07 16:06:11 -0400
committerJohn Snow <jsnow@redhat.com>2021-06-18 16:10:06 -0400
commitde14ba24f3f31329debdfac9fa73c8d78e30399b (patch)
tree712027487f55f4a7dd2ec415fca6c6c44c8a9c26 /scripts/qmp
parent70e56740181a980a5bb60c3b0223e34e2616caf4 (diff)
downloadqemu-de14ba24f3f31329debdfac9fa73c8d78e30399b.zip
qemu-de14ba24f3f31329debdfac9fa73c8d78e30399b.tar.gz
qemu-de14ba24f3f31329debdfac9fa73c8d78e30399b.tar.bz2
scripts/qmp-shell: fix exception handling
Fixes: 50d189c Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210607200649.1840382-5-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qmp')
-rwxr-xr-xscripts/qmp/qmp-shell2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index 18bf49b..413dd4d 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -452,7 +452,7 @@ def main():
die('Didn\'t get QMP greeting message')
except qmp.QMPCapabilitiesError:
die('Could not negotiate capabilities')
- except qemu.error:
+ except OSError:
die('Could not connect to %s' % addr)
qemu.show_banner()