diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index ae2f63b7..c8fa22c5 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -1395,8 +1395,7 @@ exit: PyObject *ptype = NULL, *pvalue = NULL, *ptb = NULL; PyErr_Fetch(&ptype, &pvalue, &ptb); obscure_password(self); - // if we got a system exit exception (not a subclass of Exception), - // leave it as is, do not restore + /* try ... except Exception: instead of try ... except: */ if (PyErr_Occurred() && ! PyErr_ExceptionMatches(PyExc_Exception)) { Py_XDECREF(ptype); Py_XDECREF(pvalue);