Handle emoji combine errors

main
Bob Mottram 2022-01-30 18:03:55 +00:00
parent a11ab2a5b5
commit 7adcb33d61
1 changed files with 4 additions and 1 deletions

View File

@ -939,7 +939,10 @@ def add_html_tags(base_dir: str, http_prefix: str,
custom_emoji_dict = \
load_json(base_dir + '/emojicustom/emoji.json')
if custom_emoji_dict:
emoji_dict = dict(emoji_dict, **custom_emoji_dict)
try:
emoji_dict = dict(emoji_dict, **custom_emoji_dict)
except BaseException:
pass
# print('TAG: looking up emoji for :' + word_str2 + ':')
_add_emoji(base_dir, ':' + word_str2 + ':', http_prefix,