Closed amotl closed 6 months ago
Thanks for reporting, @romseygeek and @proddata.
After an improvement in crate-python 0.34, this error case is conveyed through IntegrityError. Beforehand, a more generic ProgrammingError was used.
IntegrityError
ProgrammingError
Without the update, a duplicate key exception causes crash to exit prematurely and unexpectedly, when using more recent versions of crate-python.
Now, both exception types will be handled in the same way.
Problem
Thanks for reporting, @romseygeek and @proddata.
Details
After an improvement in crate-python 0.34, this error case is conveyed through
IntegrityError
. Beforehand, a more genericProgrammingError
was used.Without the update, a duplicate key exception causes crash to exit prematurely and unexpectedly, when using more recent versions of crate-python.
Solution
Now, both exception types will be handled in the same way.