From 7adcb33d61d6f708c0216f8966b87f0826453f46 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Jan 2022 18:03:55 +0000 Subject: [PATCH] Handle emoji combine errors --- content.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content.py b/content.py index 40b380487..4448d0d5d 100644 --- a/content.py +++ b/content.py @@ -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,