diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2015-09-22 14:27:42 +0200 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2015-10-05 08:35:52 +0200 |
commit | 61411050cb32864dfe535fce197a31303a067738 (patch) | |
tree | f2bc335dca0fc7aee35dd96611b1fe0a1e9bce80 /libvirt-lxc-override.c | |
parent | 5c74e41c974f17a9da80be8c9f1d42bc9bf6e33a (diff) | |
download | libvirt-python-61411050cb32864dfe535fce197a31303a067738.tar.gz |
Return NULL if python exception is set
There is a rule, python API fails, it also in those cases sets an
exception. We should follow those rules and in those cases return NULL.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Diffstat (limited to 'libvirt-lxc-override.c')
-rw-r--r-- | libvirt-lxc-override.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-lxc-override.c b/libvirt-lxc-override.c index 8f5bb0c..20d1cf4 100644 --- a/libvirt-lxc-override.c +++ b/libvirt-lxc-override.c @@ -99,7 +99,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED, VIR_FORCE_CLOSE(fdlist[i]); } VIR_FREE(fdlist); - return VIR_PY_NONE; + return NULL; } /************************************************************************ * * |