We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 358ca96 commit 0303f1dCopy full SHA for 0303f1d
pynuodb/exception.py
@@ -89,7 +89,7 @@ def db_error_handler(error_code, error_string):
89
raise DataError(error_code_string + ': ' + error_string)
90
elif error_code in protocol.OPERATIONAL_ERRORS:
91
raise OperationalError(error_code_string + ': ' + error_string)
92
- elif errorCode in []:
+ elif errorCode in protocol.INTEGRITY_ERRORS:
93
raise IntegrityError(error_code_string + ': ' + errorString)
94
elif error_code in protocol.INTERNAL_ERRORS:
95
raise InternalError(error_code_string + ': ' + error_string)
0 commit comments