diff options
Diffstat (limited to 'python/qemu')
-rw-r--r-- | python/qemu/qmp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qemu/qmp.py b/python/qemu/qmp.py index 4b9a362..f40586e 100644 --- a/python/qemu/qmp.py +++ b/python/qemu/qmp.py @@ -80,7 +80,7 @@ class QEMUMonitorProtocol: raise QMPConnectError # Greeting seems ok, negotiate capabilities resp = self.cmd('qmp_capabilities') - if "return" in resp: + if resp and "return" in resp: return greeting raise QMPCapabilitiesError |