From cd2cda1a37d6e299a3b19806fb63748a063528b6 Mon Sep 17 00:00:00 2001 From: ado Date: Wed, 21 Mar 2012 14:27:52 +0530 Subject: [FIX] Fetchmail: UnboundLocalError: local variable imap_server referenced before assignment bzr revid: ado@tinyerp.com-20120321085752-pwsqfifik0cep9vr --- addons/fetchmail/fetchmail.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addons/fetchmail/fetchmail.py') diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index d1e23f49166..51702cf28fe 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -180,6 +180,8 @@ openerp_mailgate.py -u %(uid)d -p PASSWORD -o %(model)s -d %(dbname)s --host=HOS logger.info('start checking for new emails on %s server %s', server.type, server.name) context.update({'fetchmail_server_id': server.id, 'server_type': server.type}) count = 0 + imap_server = False + pop_server = False if server.type == 'imap': try: imap_server = server.connect() -- cgit v1.2.3