app_python: remove condition on classname, being set to non-null
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 07:09:26 +0000 (09:09 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 07:09:26 +0000 (09:09 +0200)
src/modules/app_python/app_python_mod.c

index 1b7b490..73651ba 100644 (file)
@@ -353,7 +353,7 @@ static int child_init(int rank)
                if (!PyErr_Occurred())
                        PyErr_Format(PyExc_AttributeError,
                                        "class object '%s' has is not callable attribute '%s'",
-                                       !classname ? "None" : classname, mod_init_fname.s);
+                                       classname, mod_init_fname.s);
                python_handle_exception("child_init");
                Py_DECREF(format_exc_obj);
                Py_XDECREF(pFunc);
@@ -389,9 +389,6 @@ static int child_init(int rank)
        Py_DECREF(pFunc);
        Py_DECREF(pArgs);
 
-
-
-
        if (PyErr_Occurred()) {
                python_handle_exception("child_init");
                Py_DECREF(format_exc_obj);
@@ -422,7 +419,6 @@ static int child_init(int rank)
                return -1;
        }
 
-
        rval = PyInt_AsLong(pResult);
        Py_DECREF(pResult);
        PyThreadState_Swap(NULL);