Update the caught exception in Db _query method

It resulted from changing the exception type from the SQLAlchemy side in the latest 1.4.45 version.

Merge request reports

Loading