From 3bc30f1454edc7deeac21a4057cbe1a60708218f Mon Sep 17 00:00:00 2001 From: Richard Bann Date: Tue, 18 Jun 2019 15:03:06 +0200 Subject: [PATCH] fix comment style --- psycopg/connection_type.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);