Module: kamailio
Branch: master
Commit: afe6d712d5ef52ac6f3fe8e6f69406779e3a740e
URL:
https://github.com/kamailio/kamailio/commit/afe6d712d5ef52ac6f3fe8e6f694067…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-28T09:19:06+02:00
app_python: removed condition on classname, it cannot be null
---
Modified: src/modules/app_python/app_python_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/afe6d712d5ef52ac6f3fe8e6f694067…
Patch:
https://github.com/kamailio/kamailio/commit/afe6d712d5ef52ac6f3fe8e6f694067…
---
diff --git a/src/modules/app_python/app_python_mod.c
b/src/modules/app_python/app_python_mod.c
index 73651ba8cf..64f59fcc07 100644
--- a/src/modules/app_python/app_python_mod.c
+++ b/src/modules/app_python/app_python_mod.c
@@ -410,7 +410,7 @@ static int child_init(int rank)
if (!PyErr_Occurred())
PyErr_Format(PyExc_TypeError,
"method '%s' of class '%s' should return 'int'
type",
- child_init_mname.s, !classname ? "None" : classname);
+ child_init_mname.s, classname);
python_handle_exception("child_init");
Py_DECREF(format_exc_obj);
Py_XDECREF(pResult);