UserError uses a retrocompatibility function 'except_orm' which one can take a second parameters. The default value of this second param is None, so if we don't force an empty string, we will see a None on each raise UserError as last line.
openerp
odoo