Skip to content

Commit 0316536

Browse files
committed
Bump version and include a warning regarding the corrected DB-API connect exception.
1 parent db2f0c1 commit 0316536

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

README

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http://github.com/MagicStack/asyncpg should be considered.
1111
py-postgresql, currently, does not have direct support for high-level async
1212
interfaces provided by recent versions of Python. Future versions may change this.
1313

14+
Errata
15+
------
16+
17+
.. warning::
18+
`postgresql.driver.dbapi20.connect` will now raise `ClientCannotConnectError` directly.
19+
Exception traps around connect should still function, but the `__context__` attribute
20+
on the error instance will be `None` in the usual failure case as it is no longer
21+
incorrectly chained. Trapping `ClientCannotConnectError` ahead of `Error` should
22+
allow both cases to co-exist in the event that data is being extracted from
23+
the `ClientCannotConnectError`.
24+
1425
Installation
1526
------------
1627

postgresql/documentation/changes-v1.2.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changes in v1.2
22
===============
33

4+
1.2.2 released on 2020-09-17
5+
----------------------------
6+
7+
* Correct broken Connection.proc.
8+
* Correct IPv6 IRI host oversight.
9+
* Document an ambiguity case of DB-API 2.0 connection creation and the workaround(unix vs host/port).
10+
* DB-API 2.0 connect() failures caused an undesired exception chain; ClientCannotConnect is now raised.
11+
* Minor maintenance on tests and support modules.
12+
413
1.2.0 released on 2016-06-23
514
----------------------------
615

postgresql/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
meaculpa = 'Python+Postgres'
99
abstract = 'Driver and tools library for PostgreSQL'
1010

11-
version_info = (1, 2, 1)
11+
version_info = (1, 2, 2)
1212
version = '.'.join(map(str, version_info))

0 commit comments

Comments
 (0)