diff options
author | 2024-05-23 20:55:20 +0200 | |
---|---|---|
committer | 2024-05-23 20:55:20 +0200 | |
commit | fc2575a0d9ba517c31dc1e0e8824686d2d32072b (patch) | |
tree | ba4291a51d64ccf4aa0e1a86edfa440a7a0cbdda | |
parent | Merge pull request #3070 from python-discord/dependabot/pip/sentry-sdk-2.3.1 (diff) |
Give default name to unicode character.
-rw-r--r-- | bot/exts/utils/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index dd9daef1d..2faf06fee 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -71,7 +71,7 @@ class Utils(Cog): else: u_code = f"\\U{digit:>08}" url = f"https://www.compart.com/en/unicode/U+{digit:>04}" - name = f"[{unicodedata.name(char, '')}]({url})" + name = f"[{unicodedata.name(char, 'Name not found')}]({url})" info = f"`{u_code.ljust(10)}`: {name} - {utils.escape_markdown(char)}" return info, u_code |