From f26fa3816af76236045893463d7876dd323720cc Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Thu, 18 May 2017 12:05:22 +0530 Subject: [PATCH] [minor] fixed UnicodeEncode error for item name (#3321) * [minor] fixed UnicodeEncode error for item name * Update router.py --- frappe/website/router.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/website/router.py b/frappe/website/router.py index 8c8d8bdecb..4ce5655f78 100644 --- a/frappe/website/router.py +++ b/frappe/website/router.py @@ -66,8 +66,9 @@ def get_page_context_from_template(path): options = (search_path, search_path + '.html', search_path + '.md', search_path + '/index.html', search_path + '/index.md') for o in options: - if os.path.exists(o) and not os.path.isdir(o): - return get_page_info(o, app, app_path=app_path) + option = frappe.as_unicode(o) + if os.path.exists(option) and not os.path.isdir(option): + return get_page_info(option, app, app_path=app_path) return None