[fix] [issue] webnotes/erpnext#948 server messages clear from locals whenever exception is raised

This commit is contained in:
Akhilesh Darjee 2013-10-08 11:28:40 +05:30
parent 09a9736d81
commit 631f0fa60c
2 changed files with 2 additions and 2 deletions

View file

@ -384,7 +384,7 @@ def upload(rows = None, submit_after_import=None, ignore_encoding_errors=False,
doclist = get_doclist(row_idx)
try:
webnotes.message_log = []
webnotes.local.message_log = []
if len(doclist) > 1:
if overwrite and webnotes.conn.exists(doctype, doclist[0]["name"]):
bean = webnotes.bean(doctype, doclist[0]["name"])

View file

@ -47,7 +47,7 @@ def application(request):
except HTTPException, e:
return e
return webnotes._response
application = local_manager.make_middleware(application)