From 7febef2e629ac900055ca6914410aec255be1ede Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Sat, 29 Apr 2017 16:01:23 +0530 Subject: [PATCH 1/2] [fix][hot] email pull fixes (#3191) --- frappe/email/doctype/email_account/email_account.py | 4 +++- frappe/email/receive.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frappe/email/doctype/email_account/email_account.py b/frappe/email/doctype/email_account/email_account.py index 8f56f2a435..70fbae6efe 100755 --- a/frappe/email/doctype/email_account/email_account.py +++ b/frappe/email/doctype/email_account/email_account.py @@ -251,8 +251,10 @@ class EmailAccount(Document): return emails = email_server.get_messages() + if not emails: + return - incoming_mails = emails.get("latest_messages") + incoming_mails = emails.get("latest_messages", []) uid_list = emails.get("uid_list", []) seen_status = emails.get("seen_status", []) uid_reindexed = emails.get("uid_reindexed", False) diff --git a/frappe/email/receive.py b/frappe/email/receive.py index 750ad865a9..1916bcd5ef 100644 --- a/frappe/email/receive.py +++ b/frappe/email/receive.py @@ -100,7 +100,7 @@ class EmailServer: frappe.db.commit() if not self.connect(): - return [] + return uid_list = [] From f136dab762304f2c01b7b78878aa6d0712fe7f8d Mon Sep 17 00:00:00 2001 From: Saurabh Date: Sat, 29 Apr 2017 16:50:09 +0600 Subject: [PATCH 2/2] bumped to version 8.0.28 --- frappe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index 6e3f06807f..68c9a0270e 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -13,7 +13,7 @@ import os, sys, importlib, inspect, json from .exceptions import * from .utils.jinja import get_jenv, get_template, render_template -__version__ = '8.0.27' +__version__ = '8.0.28' __title__ = "Frappe Framework" local = Local()