use frappe.Redirect instead of DoesNotExistError
This commit is contained in:
parent
76b20a5fa4
commit
0671ea8137
@ -14,7 +14,8 @@ def get_context(context):
|
||||
if is_enabled:
|
||||
return context
|
||||
else:
|
||||
raise frappe.DoesNotExistError
|
||||
frappe.local.flags.redirect_location = '/404'
|
||||
raise frappe.Redirect
|
||||
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
def get_appointment_settings():
|
||||
|
Loading…
x
Reference in New Issue
Block a user