From 3081224bbce46b2cb971c80f2c68fe3310132142 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Tue, 11 Mar 2014 12:42:47 +0530 Subject: [PATCH] fix _response --- frappe/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/app.py b/frappe/app.py index e3a0a1fd26..de0b221d38 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -76,9 +76,10 @@ def application(request): frappe.local._response = handle_session_stopped() finally: + _response = frappe.local._response frappe.destroy() - return frappe.local._response + return _response application = local_manager.make_middleware(application)