]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fixed - set PyErr when Container.__init__ fails 995/head
authorAron Podrigal <aronp@guaranteedplus.com>
Sun, 1 May 2016 15:06:53 +0000 (11:06 -0400)
committerAron Podrigal <aronp@guaranteedplus.com>
Sun, 1 May 2016 15:38:33 +0000 (11:38 -0400)
commit9dfb0ad9bedb456ce618a7e690103545f6d030b1
tree8e1ad3022e61c24d2739bb7bc8ccae177b2019de
parent0aeed838e75697795c642d04bf110ded09bb5c9d
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