[FIX] fetchmail.server: care for non-ascii connection error message

bzr revid: odo@openerp.com-20110914120753-tt1x0kr8b1noj84j
This commit is contained in:
Olivier Dony 2011-09-14 14:07:53 +02:00
parent 623bdb2c9f
commit 6289ce38f9
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class fetchmail_server(osv.osv):
server.write({'state':'done'})
except Exception, e:
logger.exception("Failed to connect to %s server %s", server.type, server.name)
raise osv.except_osv(_("Connection test failed!"), _("Here is what we got instead:\n %s") % e)
raise osv.except_osv(_("Connection test failed!"), _("Here is what we got instead:\n %s") % tools.ustr(e))
finally:
try:
if connection: