fix: if maintenance mode on, connect database explicitly before… (#7731)
This commit is contained in:
parent
5912eeb888
commit
264a3a2a5d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue