app_python: removed condition on classname, it cannot be null
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 16:26:28 +0000 (18:26 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 28 Jul 2017 07:19:06 +0000 (09:19 +0200)
src/modules/app_python/app_python_mod.c

index 73651ba..64f59fc 100644 (file)
@@ -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);