Python: removed wrong PyErr_Print() call.
PyCallable_Check() doesn't produce errors. The needless call was introduced in fdd6ed28e3b9.
This commit is contained in:
@@ -322,7 +322,6 @@ nxt_python_init(nxt_task_t *task, nxt_common_app_conf_t *conf)
|
|||||||
if (nxt_slow_path(PyCallable_Check(obj) == 0)) {
|
if (nxt_slow_path(PyCallable_Check(obj) == 0)) {
|
||||||
nxt_alert(task, "\"application\" in module \"%s\" "
|
nxt_alert(task, "\"application\" in module \"%s\" "
|
||||||
"is not a callable object", nxt_py_module);
|
"is not a callable object", nxt_py_module);
|
||||||
PyErr_Print();
|
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user