diff --git a/core/page/data_import_tool/data_import_tool.py b/core/page/data_import_tool/data_import_tool.py index 21d17c872a..6bc56f8427 100644 --- a/core/page/data_import_tool/data_import_tool.py +++ b/core/page/data_import_tool/data_import_tool.py @@ -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"]) diff --git a/webnotes/app.py b/webnotes/app.py index 43bddf9dd9..a129d5b1bc 100644 --- a/webnotes/app.py +++ b/webnotes/app.py @@ -47,7 +47,7 @@ def application(request): except HTTPException, e: return e - + return webnotes._response application = local_manager.make_middleware(application)