]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Added class_for_state() stub
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 24 Mar 2020 10:19:22 +0000 (23:19 +1300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 24 Mar 2020 10:19:22 +0000 (23:19 +1300)
psycopg3/exceptions.py

index ca2eb18e3cb1c379e898a59b66944e8bc4308757..7baba55b150e1f1e7cd651c20deda4e6cd4c8ff2 100644 (file)
@@ -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