mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 21:21:53 +00:00
fixed python3 reload-on-exception
This commit is contained in:
@@ -10,12 +10,16 @@ int manage_python_response(struct wsgi_request *wsgi_req) {
|
||||
|
||||
char *uwsgi_python_get_exception_type(PyObject *exc) {
|
||||
char *class_name = NULL;
|
||||
#ifndef PYTHREE
|
||||
if (PyClass_Check(exc)) {
|
||||
class_name = PyString_AsString( ((PyClassObject*)(exc))->cl_name );
|
||||
}
|
||||
else {
|
||||
#endif
|
||||
class_name = (char *) ((PyTypeObject*)exc)->tp_name;
|
||||
#ifndef PYTHREE
|
||||
}
|
||||
#endif
|
||||
|
||||
if (class_name) {
|
||||
char *dot = strrchr(class_name, '.');
|
||||
|
||||
Reference in New Issue
Block a user