Skip to content

Commit

Permalink
app_python: remove condition on classname, being set to non-null
Browse files Browse the repository at this point in the history
(cherry picked from commit ec4d74a)
  • Loading branch information
miconda committed Aug 30, 2017
1 parent 520bb5c commit 140a508
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/modules/app_python/app_python_mod.c
Expand Up @@ -362,7 +362,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);
Expand Down Expand Up @@ -398,9 +398,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);
Expand Down Expand Up @@ -431,7 +428,6 @@ static int child_init(int rank)
return -1;
}


rval = PyInt_AsLong(pResult);
Py_DECREF(pResult);
PyThreadState_Swap(NULL);
Expand Down

0 comments on commit 140a508

Please sign in to comment.