Decode the severity field in database exception objects properly. Fixes #3090

This commit is contained in:
Akshay Joshi
2018-03-26 13:59:49 +01:00
committed by Dave Page
parent 413709fc78
commit 1baddd5e9a
2 changed files with 2 additions and 1 deletions

View File

@@ -1580,7 +1580,7 @@ Failed to reset the connection to the server due to following error:
if exception_obj.diag.severity is not None \
and exception_obj.diag.message_primary is not None:
ex_diag_message = u"{0}: {1}".format(
exception_obj.diag.severity,
self.decode_to_utf8(exception_obj.diag.severity),
self.decode_to_utf8(exception_obj.diag.message_primary)
)
# If both errors are different then only append it