diff --git a/lib/fmt/png.py b/lib/fmt/png.py index 8e3ba0b..d1fbd17 100644 --- a/lib/fmt/png.py +++ b/lib/fmt/png.py @@ -148,7 +148,7 @@ def _script_category(char): default, Cyrillic, Greek, Han, Hiragana """ - if char in emoji.UNICODE_EMOJI: + if emoji.is_emoji(char): return "Emoji" cat = unicodedata2.script_cat(char)[0]