Skip to content

Commit

Permalink
fix: do not abort in case of unknown emoji unicode character
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed Dec 5, 2023
1 parent 362ad8f commit a69fd5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tagmaps/classes/utils.py
Expand Up @@ -16,6 +16,7 @@
import re
import sys
import unicodedata
import warnings
from collections import namedtuple
from datetime import timedelta
from importlib import reload
Expand Down Expand Up @@ -481,7 +482,8 @@ def get_emojiname(emoji_string):
if not emoji_name:
emoji_name = demojize(emoji_string)
if not emoji_name:
raise ValueError(f"No name found for {emoji_string}")
warnings.warn(f"No name found for {emoji_string}")
return ""
return emoji_name

@staticmethod
Expand Down

0 comments on commit a69fd5f

Please sign in to comment.