diff options
| author | Olivier Dony <odo@openerp.com> | 2011-09-14 14:07:53 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-09-14 14:07:53 +0200 |
| commit | 6289ce38f9a4e1c7d0aee7a3d565f883f8e0e27c (patch) | |
| tree | 7514ea6111e3ebcc5c65c24e9478cd8e6660b88e /addons/fetchmail | |
| parent | 623bdb2c9f2c66c905dcb91ff99bc3d89453f491 (diff) | |
[FIX] fetchmail.server: care for non-ascii connection error message
bzr revid: odo@openerp.com-20110914120753-tt1x0kr8b1noj84j
Diffstat (limited to 'addons/fetchmail')
| -rw-r--r-- | addons/fetchmail/fetchmail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 8aaff197d47..b7460965c3b 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -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: |
