Re: [libvirt] [PATCH] python: fix about some of python binding APIs don't raise and exception

2013-03-20 Thread Guannan Ren
On 03/21/2013 06:41 AM, Eric Blake wrote: On 03/01/2013 03:03 AM, Guannan Ren wrote: The subject line is long, and has a typo. I'd suggest: python: fix bindings that don't raise an exception For example: >>> dom.memoryStats() libvir: QEMU Driver error : Requested operation is not valid:\

Re: [libvirt] [PATCH] python: fix about some of python binding APIs don't raise and exception

2013-03-20 Thread Eric Blake
On 03/01/2013 03:03 AM, Guannan Ren wrote: The subject line is long, and has a typo. I'd suggest: python: fix bindings that don't raise an exception > For example: > >>> dom.memoryStats() > libvir: QEMU Driver error : Requested operation is not valid:\ > domain is not running > > Th

Re: [libvirt] [PATCH] python: fix about some of python binding APIs don't raise and exception

2013-03-18 Thread Guannan Ren
On 03/01/2013 06:03 PM, Guannan Ren wrote: For example: >>> dom.memoryStats() libvir: QEMU Driver error : Requested operation is not valid:\ domain is not running There are six such python API functions like so. The root reason is that generator.py script checks the type of return

Re: [libvirt] [PATCH] python: fix about some of python binding APIs don't raise and exception

2013-03-07 Thread Guannan Ren
On 03/01/2013 06:03 PM, Guannan Ren wrote: For example: >>> dom.memoryStats() libvir: QEMU Driver error : Requested operation is not valid:\ domain is not running There are six such python API functions like so. The root reason is that generator.py script checks the type of return

[libvirt] [PATCH] python: fix about some of python binding APIs don't raise and exception

2013-03-01 Thread Guannan Ren
For example: >>> dom.memoryStats() libvir: QEMU Driver error : Requested operation is not valid:\ domain is not running There are six such python API functions like so. The root reason is that generator.py script checks the type of return value of a python stub function defined in libvi