mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
use frappe.Redirect instead of DoesNotExistError
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user