Connect in your browser to a db on runbot with mail installed and wait until the runbot put to sleep the db. After a while, a new request to get im_status will be sent and nginx responds to it with an error 404 and an invalid JSON response. A traceback with a particularly bad message is then shown. Here we improve the traceback message. closes odoo/odoo#99430 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>