fix: if maintenance mode on, connect database explicitly before… (#7731)

This commit is contained in:
Saurabh 2019-06-28 19:39:25 +05:30 committed by Faris Ansari
parent 5912eeb888
commit 264a3a2a5d

View file

@ -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)