use frappe.Redirect instead of DoesNotExistError

This commit is contained in:
0Pranav 2019-11-07 13:31:56 +05:30
parent 76b20a5fa4
commit 0671ea8137

View File

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