Fix a bug in :mod:`sqlite3` where an exception could be overwritten in the :meth:`collation ` callback.