[sr-dev] git:master:afe6d712: app_python: removed condition on classname, it cannot be null

Daniel-Constantin Mierla miconda at gmail.com
Fri Jul 28 09:19:28 CEST 2017


Module: kamailio
Branch: master
Commit: afe6d712d5ef52ac6f3fe8e6f69406779e3a740e
URL: https://github.com/kamailio/kamailio/commit/afe6d712d5ef52ac6f3fe8e6f69406779e3a740e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/afe6d712d5ef52ac6f3fe8e6f69406779e3a740e.diff
Patch: https://github.com/kamailio/kamailio/commit/afe6d712d5ef52ac6f3fe8e6f69406779e3a740e.patch

---

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);




More information about the sr-dev mailing list