mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 18:34:48 +00:00
use frappe.Redirect instead of DoesNotExistError
This commit is contained in:
@@ -14,7 +14,8 @@ def get_context(context):
|
|||||||
if is_enabled:
|
if is_enabled:
|
||||||
return context
|
return context
|
||||||
else:
|
else:
|
||||||
raise frappe.DoesNotExistError
|
frappe.local.flags.redirect_location = '/404'
|
||||||
|
raise frappe.Redirect
|
||||||
|
|
||||||
@frappe.whitelist(allow_guest=True)
|
@frappe.whitelist(allow_guest=True)
|
||||||
def get_appointment_settings():
|
def get_appointment_settings():
|
||||||
|
|||||||
Reference in New Issue
Block a user