summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohn Snow2021-06-07 22:06:11 +0200
committerJohn Snow2021-06-18 22:10:06 +0200
commitde14ba24f3f31329debdfac9fa73c8d78e30399b (patch)
tree712027487f55f4a7dd2ec415fca6c6c44c8a9c26 /scripts
parentscripts/qmp-shell: fix show_banner signature (diff)
downloadqemu-de14ba24f3f31329debdfac9fa73c8d78e30399b.tar.gz
qemu-de14ba24f3f31329debdfac9fa73c8d78e30399b.tar.xz
qemu-de14ba24f3f31329debdfac9fa73c8d78e30399b.zip
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')
-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 18bf49bb26..413dd4d2de 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()