Browse Source

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>
pull/121/head
John Snow 5 years ago
parent
commit
de14ba24f3
  1. 2
      scripts/qmp/qmp-shell

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

Loading…
Cancel
Save