From b435af8d76386954c43351645beab2772740fe9e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 15 Apr 2020 10:23:44 +0100 Subject: [PATCH] debug --- webinterface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 8fb25db1c..3d124d81e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -498,13 +498,15 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int, httpPrefix: str, projectVersion: str) -> str: """Show a page containing search results for a hashtag """ - iconsDir = getIconsDir(baseDir) if hashtag.startswith('#'): hashtag = hashtag[1:] hashtagIndexFile = baseDir + '/tags/' + hashtag + '.txt' if not os.path.isfile(hashtagIndexFile): + print('WARN: hashtag file not found ' + hashtagIndexFile) return None + iconsDir = getIconsDir(baseDir) + # check that the directory for the nickname exists if nickname: if not os.path.isdir(baseDir + '/accounts/' +