The return type of _do_request is inconsistent when an error is encountered. This causes issues when the callers expect the return type to be a dictionary consistently. We fix this by always returning an empty dictionary for the request response when encountering an error sentry-4339147124 closes odoo/odoo#136881 X-original-commit: f8ac76906d1eec2ad1bc1243f60998fe50caa1bc Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>