]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fixed - set PyErr when Container.__init__ fails
authorAron Podrigal <aronp@guaranteedplus.com>
Sun, 1 May 2016 15:06:53 +0000 (11:06 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:20:09 +0000 (18:20 -0500)
commitcfaa839ee069e273434f80a7f6cde78235a936bd
tree326563fce4125036a974820359aa3761151879da
parent383554e79ae63418a03ab5f281ca9cc4dc9740e0
Fixed - set PyErr when Container.__init__ fails

When container init failed for whatever reason, previously it resulted
in a `SystemError: NULL result without error in PyObject_Call`
This will now result in a RuntimeError with the error message
previously printed to stderr.

Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com>
src/python-lxc/lxc.c