From c33b3b25d40c351165d46b19ad98c3bebcda5da5 Mon Sep 17 00:00:00 2001 From: tundebabzy Date: Mon, 19 Feb 2018 06:47:22 +0100 Subject: [PATCH] skip file if file name isn't as expected (#5029) --- frappe/utils/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/help.py b/frappe/utils/help.py index df6bfb884a..c4440bad21 100644 --- a/frappe/utils/help.py +++ b/frappe/utils/help.py @@ -237,7 +237,7 @@ class HelpDatabase(object): # files not in index.txt for f in os.listdir(path): - if not os.path.isdir(os.path.join(path, f)): + if not os.path.isdir(os.path.join(path, f)) and len(f.rsplit('.', 1)) == 2: name, extn = f.rsplit('.', 1) if name not in files \ and name != 'index' and extn in ('md', 'html'):