fix emoji==2.0.0 compatibility
This commit is contained in:
parent
62701bc562
commit
fbdff30dda
@ -6,9 +6,7 @@
|
|||||||
from typing import Set, Iterable
|
from typing import Set, Iterable
|
||||||
from slixmpp.xmlstream import ElementBase
|
from slixmpp.xmlstream import ElementBase
|
||||||
try:
|
try:
|
||||||
from emoji import UNICODE_EMOJI
|
from emoji import EMOJI_DATA as UNICODE_EMOJI
|
||||||
if UNICODE_EMOJI.get('en'):
|
|
||||||
UNICODE_EMOJI = UNICODE_EMOJI['en']
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
UNICODE_EMOJI = None
|
UNICODE_EMOJI = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user