aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2015-02-10 11:21:40 +0100
committermontellese <montellese@xbmc.org>2015-02-10 11:21:40 +0100
commit2f761f9191623eed309970b8e769e5df06acfe70 (patch)
treecb0a0818776681da8c84a8f66ab654637f130390
parent9cf3094eed8ca285b26eded5a354e0ec42c79e60 (diff)
python: fix return values from generated Foo_setMember() implementation (thanks notspiff)
-rw-r--r--xbmc/interfaces/python/PythonSwig.cpp.template6
1 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/interfaces/python/PythonSwig.cpp.template b/xbmc/interfaces/python/PythonSwig.cpp.template
index 0adba508e5..05b7f0b07f 100644
--- a/xbmc/interfaces/python/PythonSwig.cpp.template
+++ b/xbmc/interfaces/python/PythonSwig.cpp.template
@@ -511,19 +511,19 @@ void doClassMethodInfo(Node clazz, List initTypeCalls)
{
CLog::Log(LOGERROR,"EXCEPTION: %s",e.GetMessage());
PyErr_SetString(PyExc_TypeError, e.GetMessage());
- return NULL;
+ return -1;
}
catch (const XbmcCommons::Exception& e)
{
CLog::Log(LOGERROR,"EXCEPTION: %s",e.GetMessage());
PyErr_SetString(PyExc_RuntimeError, e.GetMessage());
- return NULL;
+ return -1;
}
catch (...)
{
CLog::Log(LOGERROR,"EXCEPTION: Unknown exception thrown from the call \"${classNameAsVariable}_getMember()\"");
PyErr_SetString(PyExc_RuntimeError, "Unknown exception thrown from the call \"${classNameAsVariable}_getMember()\"");
- return NULL;
+ return -1;
}
<%