fix emoji==2.0.0 compatibility

This commit is contained in:
nicoco 2022-08-29 00:59:14 +02:00
parent 62701bc562
commit fbdff30dda

View file

@ -6,9 +6,7 @@
from typing import Set, Iterable
from slixmpp.xmlstream import ElementBase
try:
from emoji import UNICODE_EMOJI
if UNICODE_EMOJI.get('en'):
UNICODE_EMOJI = UNICODE_EMOJI['en']
from emoji import EMOJI_DATA as UNICODE_EMOJI
except ImportError:
UNICODE_EMOJI = None