scripts/qmp-shell: make QMPShellError inherit QMPError
authorJohn Snow <jsnow@redhat.com>
Mon, 7 Jun 2021 20:06:45 +0000 (16:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 18 Jun 2021 20:10:07 +0000 (16:10 -0400)
In preparation for moving qmp-shell into the qemu.qmp package, make
QMPShellError inherit from QMPError so that all custom errors in this
package all derive from QMPError.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210607200649.1840382-39-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
scripts/qmp/qmp-shell

index 40ff9e0a82bdd9ce961d7a5a9e6d96b7fc28b415..1a8a4ba18ab48045bc456066711d3dd1d8eae879 100755 (executable)
@@ -123,7 +123,7 @@ class QMPCompleter:
         return None
 
 
-class QMPShellError(Exception):
+class QMPShellError(qmp.QMPError):
     pass