Skip to content

Commit

Permalink
app_python: removed condition on classname, it cannot be null
Browse files Browse the repository at this point in the history
(cherry picked from commit afe6d71)
  • Loading branch information
miconda committed Aug 30, 2017
1 parent 9a8ef86 commit 07b35e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/app_python/app_python_mod.c
Expand Up @@ -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);
Expand Down

0 comments on commit 07b35e9

Please sign in to comment.