[FIX] Fetchmail: Unicode error corrected on exception

lp bug: https://launchpad.net/bugs/708616 fixed

bzr revid: jvo@tinyerp.com-20110210073453-m13on9w8gxdur13u
This commit is contained in:
Jay Vora (OpenERP) 2011-02-10 13:04:53 +05:30
parent d42e59d6bf
commit fac9aead1e
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ from poplib import POP3_SSL
import netsvc
from osv import osv, fields
import tools
logger = netsvc.Logger()
@ -201,7 +202,7 @@ class email_server(osv.osv):
logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail fetch %s email(s) from %s' % (numMsgs, server.name))
except Exception, e:
logger.notifyChannel(server.type, netsvc.LOG_WARNING, '%s' % (e))
logger.notifyChannel(server.type, netsvc.LOG_WARNING, '%s' % (tools.ustr(e)))
return True