[fix] [issue] webnotes/erpnext#948 server messages clear from locals whenever exception is raised
This commit is contained in:
parent
09a9736d81
commit
631f0fa60c
2 changed files with 2 additions and 2 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ def application(request):
|
|||
|
||||
except HTTPException, e:
|
||||
return e
|
||||
|
||||
|
||||
return webnotes._response
|
||||
|
||||
application = local_manager.make_middleware(application)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue