Commit 6177a9e1 authored by narugo1992's avatar narugo1992
Browse files

dev(narugo): fix bug for py37

parent ed729c65
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@ from PIL import Image
from emoji import emojize
from hbutils.system import TemporaryDirectory
from hbutils.testing import vpython
from pilmoji.source import EmojiCDNSource
from scipy import ndimage

try:
@@ -158,6 +157,8 @@ register_censor_method(

@lru_cache()
def _get_emoji_img(emoji: str, style: str = 'twitter') -> Image.Image:
    from pilmoji.source import EmojiCDNSource

    class _CustomSource(EmojiCDNSource):
        STYLE = style