Skip to content

Commit 35bce5a

Browse files
vitaly-burovoy1st1
authored andcommitted
New severity "V" field as "severity_en" attribute
It is identical to the regular severity "S", but it is never localized. Introduced in Postgres-9.6: https://www.postgresql.org/docs/9.6/static/protocol-error-fields.html
1 parent 7c6e999 commit 35bce5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

asyncpg/exceptions/_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class PostgresMessageMeta(type):
2121
_message_map = {}
2222
_field_map = {
2323
'S': 'severity',
24+
'V': 'severity_en',
2425
'C': 'sqlstate',
2526
'M': 'message',
2627
'D': 'detail',

0 commit comments

Comments
 (0)