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>
This commit is contained in:
John Snow 2021-06-07 16:06:11 -04:00
parent 70e5674018
commit de14ba24f3

View File

@ -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()