From 264a3a2a5dbcea1fcd7593e11a3e7655d01899d6 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Fri, 28 Jun 2019 19:39:25 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20if=20maintenance=20mode=20on,=20connect?= =?UTF-8?q?=20database=20explicitly=20before=E2=80=A6=20(#7731)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frappe/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/app.py b/frappe/app.py index 4e905afccf..f01bbb7404 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -109,7 +109,8 @@ def init_request(request): raise NotFound if frappe.local.conf.get('maintenance_mode'): - raise frappe.SessionStopped + frappe.connect() + raise frappe.SessionStopped('Session Stopped') make_form_dict(request)