fix emoji==2.0.0 compatibility
This commit is contained in:
parent
62701bc562
commit
fbdff30dda
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue