Check that emoji dict was loaded

main
Bob Mottram 2021-11-01 22:50:26 +00:00
parent 3a31230f9c
commit 570937d8f7
1 changed files with 3 additions and 2 deletions

View File

@ -904,8 +904,9 @@ def addHtmlTags(baseDir: str, httpPrefix: str,
if os.path.isfile(baseDir + '/emojicustom/emoji.json'):
customEmojiDict = \
loadJson(baseDir + '/emojicustom/emoji.json')
emojiDict = \
dict(emojiDict.items() + customEmojiDict.items())
if customEmojiDict:
emojiDict = \
dict(emojiDict.items() + customEmojiDict.items())
# print('TAG: looking up emoji for :' + wordStr2 + ':')
_addEmoji(baseDir, ':' + wordStr2 + ':', httpPrefix,