Re: [PATCH] python: Treat None-return of greeting cmd

2020-01-30 Thread Philippe Mathieu-Daudé
On 1/20/20 8:12 AM, Lukáš Doktor wrote: In case qemu process dies the "monitor.cmd" returns None which gets passed to the "__negotiate_capabilities" and leads to unhandled exception. Let's only check the resp in case it has a value. Signed-off-by: Lukáš Doktor --- python/qemu/qmp.py | 2 +-

Re: [PATCH] python: Treat None-return of greeting cmd

2020-01-29 Thread Wainer dos Santos Moschetta
On 1/20/20 5:12 AM, Lukáš Doktor wrote: In case qemu process dies the "monitor.cmd" returns None which gets passed to the "__negotiate_capabilities" and leads to unhandled exception. Let's only check the resp in case it has a value. Signed-off-by: Lukáš Doktor --- python/qemu/qmp.py | 2 +-

Re: [PATCH] python: Treat None-return of greeting cmd

2020-01-20 Thread Philippe Mathieu-Daudé
On 1/20/20 8:12 AM, Lukáš Doktor wrote: In case qemu process dies the "monitor.cmd" returns None which gets passed to the "__negotiate_capabilities" and leads to unhandled exception. Let's only check the resp in case it has a value. Signed-off-by: Lukáš Doktor --- python/qemu/qmp.py | 2

[PATCH] python: Treat None-return of greeting cmd

2020-01-19 Thread Lukáš Doktor
In case qemu process dies the "monitor.cmd" returns None which gets passed to the "__negotiate_capabilities" and leads to unhandled exception. Let's only check the resp in case it has a value. Signed-off-by: Lukáš Doktor --- python/qemu/qmp.py | 2 +- 1 file changed, 1 insertion(+), 1