Signed-off-by: John Snow <js...@redhat.com> --- scripts/qmp/qmp-shell | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell index 6ad9384c1804..b3ab735397d4 100755 --- a/scripts/qmp/qmp-shell +++ b/scripts/qmp/qmp-shell @@ -138,8 +138,8 @@ class QMPShell(qmp.QEMUMonitorProtocol): if len(addr) == 2: try: port = int(addr[1]) - except ValueError: - raise QMPShellBadPort + except ValueError as err: + raise QMPShellBadPort from err return addr[0], port # socket path return arg -- 2.26.2