fix: Handle exception
This commit is contained in:
parent
aab2aca089
commit
ba88b2cdb9
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ def evaluate_dynamic_routes(rules, path):
|
|||
route_map = Map(rules)
|
||||
endpoint = None
|
||||
|
||||
if frappe.local.request and frappe.local.request.environ:
|
||||
if hasattr(frappe.local, 'request') and frappe.local.request.environ:
|
||||
urls = route_map.bind_to_environ(frappe.local.request.environ)
|
||||
try:
|
||||
endpoint, args = urls.match("/" + path)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue