OCA / search-engine

GNU Affero General Public License v3.0
46 stars 61 forks source link

[FIX] [FIX] connector_search_engine: avoid catching pg error in binding recompute json #178

Closed sbejaoui closed 11 months ago

sbejaoui commented 11 months ago

If a psycopg error occurs, the queue does not automatically retry the job. This is because we attempt to write the error to the binding after the SQL transaction ends, resulting in a job failure. Since UserError exceptions is the base of all Odoo exceptions, catching it should be sufficient.

lmignon commented 11 months ago

/ocabot merge patch

OCA-git-bot commented 11 months ago

On my way to merge this fine PR! Prepared branch 16.0-ocabot-merge-pr-178-by-lmignon-bump-patch, awaiting test results.

OCA-git-bot commented 11 months ago

Congratulations, your PR was merged at 4886b6f6754fa5663ecbd3ef35659835a85033b1. Thanks a lot for contributing to OCA. ❤️