From f01394fb62b077bfda7dc17c5370286b51cb8ee2 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 28 Apr 2016 16:05:03 +0530 Subject: [PATCH] [patch] [fix] --- frappe/core/doctype/communication/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/communication/comment.py b/frappe/core/doctype/communication/comment.py index 6d9163a268..3b8a266a99 100644 --- a/frappe/core/doctype/communication/comment.py +++ b/frappe/core/doctype/communication/comment.py @@ -139,7 +139,7 @@ def update_comments_in_parent(reference_doctype, reference_name, _comments): "%s", "%s"), (json.dumps(_comments), reference_name)) except Exception, e: - if e.args[0] == 1054 and getattr(frappe.local, 'request'): + if e.args[0] == 1054 and getattr(frappe.local, 'request', None): # missing column and in request, add column and update after commit frappe.local._comments = (getattr(frappe.local, "_comments", []) + [(reference_doctype, reference_name, _comments)])