From 07b35e90b610e0828d205676582fd806d53dde8e Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 27 Jul 2017 18:26:28 +0200 Subject: [PATCH] app_python: removed condition on classname, it cannot be null (cherry picked from commit afe6d712d5ef52ac6f3fe8e6f69406779e3a740e) --- src/modules/app_python/app_python_mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/app_python/app_python_mod.c b/src/modules/app_python/app_python_mod.c index a00fa06b6ad..3ad58f7248b 100644 --- a/src/modules/app_python/app_python_mod.c +++ b/src/modules/app_python/app_python_mod.c @@ -419,7 +419,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);