[lxc-devel] [lxc/lxc] 9dfb0a: Fixed - set PyErr when Container.__init__ fails

GitHub noreply at github.com
Sun May 1 21:42:16 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 9dfb0ad9bedb456ce618a7e690103545f6d030b1
      https://github.com/lxc/lxc/commit/9dfb0ad9bedb456ce618a7e690103545f6d030b1
  Author: Aron Podrigal <aronp at guaranteedplus.com>
  Date:   2016-05-01 (Sun, 01 May 2016)

  Changed paths:
    M src/python-lxc/lxc.c

  Log Message:
  -----------
  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 at guaranteedplus.com>


  Commit: 25e032fb43a83f6b097b89f7cb22a79e8cf28bb3
      https://github.com/lxc/lxc/commit/25e032fb43a83f6b097b89f7cb22a79e8cf28bb3
  Author: Christian Brauner <christian.brauner at mailbox.org>
  Date:   2016-05-01 (Sun, 01 May 2016)

  Changed paths:
    M src/python-lxc/lxc.c

  Log Message:
  -----------
  Merge pull request #995 from ar45/fix_system_error_init_container_failed

set PyErr when Container.__init__ fails


Compare: https://github.com/lxc/lxc/compare/b4e73f49f3b7...25e032fb43a8


More information about the lxc-devel mailing list