[libvirt] [PATCH] python: don't mask libvirt errors

2012-08-31 Thread Eric Blake
A user reported this crash when using python bindings: File /home/nox/workspace/NOX/src/NOX/hooks.py, line 134, in trigger hook.trigger(event) File /home/nox/workspace/NOX/src/NOX/hooks.py, line 33, in trigger self.handlers[event]() File /home/nox/workspace/NOX/hooks/volatility.py,

Re: [libvirt] [PATCH] python: don't mask libvirt errors

2012-08-31 Thread Peter Krempa
On 08/31/12 19:10, Eric Blake wrote: A user reported this crash when using python bindings: File /home/nox/workspace/NOX/src/NOX/hooks.py, line 134, in trigger hook.trigger(event) File /home/nox/workspace/NOX/src/NOX/hooks.py, line 33, in trigger self.handlers[event]() File

Re: [libvirt] [PATCH] python: don't mask libvirt errors

2012-08-31 Thread Eric Blake
On 08/31/2012 03:05 PM, Peter Krempa wrote: On 08/31/12 19:10, Eric Blake wrote: A user reported this crash when using python bindings: In the python bindings, returning NULL makes python think an exception was thrown, while returning the None object lets the wrappers know that a libvirt