diff options
author | John Snow <jsnow@redhat.com> | 2021-06-07 16:06:11 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2021-06-18 16:10:06 -0400 |
commit | de14ba24f3f31329debdfac9fa73c8d78e30399b (patch) | |
tree | 712027487f55f4a7dd2ec415fca6c6c44c8a9c26 /scripts | |
parent | 70e56740181a980a5bb60c3b0223e34e2616caf4 (diff) |
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-x | scripts/qmp/qmp-shell | 2 |
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() |