In my environment I was able to eliminate those deprecation warnings by replacing: m = _DUP_KEY_RE_DB[engine_name].match(integrity_error.message) with this: m = _DUP_KEY_RE_DB[engine_name].match(integrity_error.args[0])
In my environment I was able to eliminate those deprecation warnings by replacing: RE_DB[engine_ name].match( integrity_ error.message) RE_DB[engine_ name].match( integrity_ error.args[ 0])
m = _DUP_KEY_
with this:
m = _DUP_KEY_