From cc64d7a2245e56342f39d9e0946efac6ddf87a05 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Tue, 11 Mar 2014 11:28:56 +0530 Subject: [PATCH] fix frappe.destroy in app.py --- frappe/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frappe/app.py b/frappe/app.py index d08bc4cd02..e3a0a1fd26 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -76,8 +76,7 @@ def application(request): frappe.local._response = handle_session_stopped() finally: - if frappe.db: - frappe.db.close() + frappe.destroy() return frappe.local._response