summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_python_wsgi.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-12-19 20:06:53 +0300
committerValentin Bartenev <vbart@nginx.com>2018-12-19 20:06:53 +0300
commitcebec46353b3a185f96520e012cbf52e40238cae (patch)
treed7fa68c79d518044a355390e3af96a5bb2007f6f /src/nxt_python_wsgi.c
parent98e8f366dabbe1b8e923678d9edd17ee61b54e0f (diff)
downloadunit-cebec46353b3a185f96520e012cbf52e40238cae.tar.gz
unit-cebec46353b3a185f96520e012cbf52e40238cae.tar.bz2
Python: replaced PyErr_PrintEx(1) with PyErr_Print().
These function calls are equivalent. No functional changes.
Diffstat (limited to '')
-rw-r--r--src/nxt_python_wsgi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c
index 3a5f1913..739ee0b9 100644
--- a/src/nxt_python_wsgi.c
+++ b/src/nxt_python_wsgi.c
@@ -354,7 +354,7 @@ nxt_python_init(nxt_task_t *task, nxt_common_app_conf_t *conf)
if (nxt_slow_path(module == NULL)) {
nxt_alert(task, "Python failed to import module \"%s\"", nxt_py_module);
- PyErr_PrintEx(1);
+ PyErr_Print();
return NXT_ERROR;
}
@@ -369,7 +369,7 @@ nxt_python_init(nxt_task_t *task, nxt_common_app_conf_t *conf)
if (nxt_slow_path(PyCallable_Check(obj) == 0)) {
nxt_alert(task, "\"application\" in module \"%s\" "
"is not a callable object", nxt_py_module);
- PyErr_PrintEx(1);
+ PyErr_Print();
goto fail;
}
@@ -804,7 +804,7 @@ nxt_python_add_sptr(nxt_python_run_ctx_t *ctx, const char *name,
nxt_unit_req_error(ctx->req,
"Python failed to create value string \"%.*s\"",
(int) size, src);
- PyErr_PrintEx(1);
+ PyErr_Print();
return NXT_UNIT_ERROR;
}
@@ -839,7 +839,7 @@ nxt_python_add_str(nxt_python_run_ctx_t *ctx, const char *name,
nxt_unit_req_error(ctx->req,
"Python failed to create value string \"%.*s\"",
(int) size, str);
- PyErr_PrintEx(1);
+ PyErr_Print();
return NXT_UNIT_ERROR;
}