Skip to content

Commit 0303f1d

Browse files
committed
Updated integrity error
1 parent 358ca96 commit 0303f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynuodb/exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def db_error_handler(error_code, error_string):
8989
raise DataError(error_code_string + ': ' + error_string)
9090
elif error_code in protocol.OPERATIONAL_ERRORS:
9191
raise OperationalError(error_code_string + ': ' + error_string)
92-
elif errorCode in []:
92+
elif errorCode in protocol.INTEGRITY_ERRORS:
9393
raise IntegrityError(error_code_string + ': ' + errorString)
9494
elif error_code in protocol.INTERNAL_ERRORS:
9595
raise InternalError(error_code_string + ': ' + error_string)

0 commit comments

Comments
 (0)