From: Daniele Varrazzo Date: Tue, 24 Mar 2020 10:19:22 +0000 (+1300) Subject: Added class_for_state() stub X-Git-Tag: 3.0.dev0~676 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc04ea0b426864731c4b60e6b1e266a107296428;p=thirdparty%2Fpsycopg.git Added class_for_state() stub --- diff --git a/psycopg3/exceptions.py b/psycopg3/exceptions.py index ca2eb18e3..7baba55b1 100644 --- a/psycopg3/exceptions.py +++ b/psycopg3/exceptions.py @@ -98,3 +98,8 @@ class NotSupportedError(DatabaseError): """ A method or database API was used which is not supported by the database, """ + + +def class_for_state(sqlstate): + # TODO: stub + return DatabaseError