diff options
author | Valentin Bartenev <vbart@nginx.com> | 2019-11-14 17:48:48 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2019-11-14 17:48:48 +0300 |
commit | 4e41d900064bcccc02ec7efd0109c190d6637028 (patch) | |
tree | 686b2e3282c35cfebe8fa556f138e339ee8a8a94 /src | |
parent | b3db7a30c0c248616945926e1692e0601d0bbec6 (diff) | |
download | unit-4e41d900064bcccc02ec7efd0109c190d6637028.tar.gz unit-4e41d900064bcccc02ec7efd0109c190d6637028.tar.bz2 |
Python: removed wrong PyErr_Print() call.
PyCallable_Check() doesn't produce errors.
The needless call was introduced in fdd6ed28e3b9.
Diffstat (limited to 'src')
-rw-r--r-- | src/nxt_python_wsgi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c index d861a50a..037c1e02 100644 --- a/src/nxt_python_wsgi.c +++ b/src/nxt_python_wsgi.c @@ -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)) { nxt_alert(task, "\"application\" in module \"%s\" " "is not a callable object", nxt_py_module); - PyErr_Print(); goto fail; } |