summary refs log tree commit diff stats
path: root/python/qemu/qmp/qom.py
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2022-01-10 18:28:52 -0500
committerJohn Snow <jsnow@redhat.com>2022-01-21 16:01:31 -0500
commit8d6cdc5118e8c7d71ccb716ded2a618e6f78a295 (patch)
treed8c9c6e70907baef98c133825184c59d377f72f9 /python/qemu/qmp/qom.py
parent26db07516fea6e264ba3c30651145f3873f7e4a7 (diff)
downloadfocaccia-qemu-8d6cdc5118e8c7d71ccb716ded2a618e6f78a295.tar.gz
focaccia-qemu-8d6cdc5118e8c7d71ccb716ded2a618e6f78a295.zip
python/qmp: switch qom tools to AQMP
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Beraldo Leal <bleal@redhat.com>
Diffstat (limited to 'python/qemu/qmp/qom.py')
-rw-r--r--python/qemu/qmp/qom.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/qemu/qmp/qom.py b/python/qemu/qmp/qom.py
index 8ff28a8343..bb5d1a78f5 100644
--- a/python/qemu/qmp/qom.py
+++ b/python/qemu/qmp/qom.py
@@ -32,7 +32,8 @@ QOM commands:
 
 import argparse
 
-from . import QMPResponseError
+from qemu.aqmp import ExecuteError
+
 from .qom_common import QOMCommand
 
 
@@ -233,7 +234,7 @@ class QOMTree(QOMCommand):
                 rsp = self.qmp.command('qom-get', path=path,
                                        property=item.name)
                 print(f"  {item.name}: {rsp} ({item.type})")
-            except QMPResponseError as err:
+            except ExecuteError as err:
                 print(f"  {item.name}: <EXCEPTION: {err!s}> ({item.type})")
         print('')
         for item in items: