qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 68/72] scripts/qmp-shell: make QMPShellError inherit QMPError


From: John Snow
Subject: [PATCH v2 68/72] scripts/qmp-shell: make QMPShellError inherit QMPError
Date: Tue, 3 Nov 2020 19:35:58 -0500

This way, all exceptions from the qemu.qmp namespace all derive from
QMPError.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qmp/qmp-shell | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index 40ff9e0a82bd..1a8a4ba18ab4 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -123,7 +123,7 @@ class QMPCompleter:
         return None
 
 
-class QMPShellError(Exception):
+class QMPShellError(qmp.QMPError):
     pass
 
 
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]