[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:
parent
d42e59d6bf
commit
fac9aead1e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue