Revert "uwsgi.is_locked raises an exception"

This reverts commit 5a3b93f763.
This commit is contained in:
Unbit
2013-07-03 15:41:57 +02:00
parent 5a3b93f763
commit 744e166e9d
+2 -1
View File
@@ -955,7 +955,8 @@ PyObject *py_uwsgi_is_locked(PyObject * self, PyObject * args) {
if (uwsgi_lock_check(uwsgi.user_lock[lock_num]) == 0) {
UWSGI_GET_GIL
return PyErr_Format(PyExc_Exception, "already locked");
Py_INCREF(Py_False);
return Py_False;
}
UWSGI_GET_GIL