diff --git a/ChangeLog b/ChangeLog index f96d87d9..88c883af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ * Preparing release 2.0.5. + * psycopg/psycopgmodule.c: fixed filling of connection errors + to include OperationalError. + * setup.py: removed pydatetime option from initialize_options to make sure that the value in setup.cfg is used. diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c index 0c36ba6b..426fb27a 100644 --- a/psycopg/psycopgmodule.c +++ b/psycopg/psycopgmodule.c @@ -118,6 +118,8 @@ _psyco_connect_fill_exc(connectionObject *conn) Py_INCREF(DataError); conn->exc_NotSupportedError = NotSupportedError; Py_INCREF(NotSupportedError); + conn->exc_OperationalError = OperationalError; + Py_INCREF(OperationalError); } static PyObject *