diff options
author | 2024-05-23 20:56:39 +0100 | |
---|---|---|
committer | 2024-05-23 20:56:39 +0100 | |
commit | 494a110bb5bc79e08fe117115f634126f88d4e93 (patch) | |
tree | ba4291a51d64ccf4aa0e1a86edfa440a7a0cbdda | |
parent | Merge pull request #3070 from python-discord/dependabot/pip/sentry-sdk-2.3.1 (diff) | |
parent | Give default name to unicode character. (diff) |
Merge pull request #3071 from LeoCx1000/patch-1
Fix faulty hyperlink in charinfo command.
-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 |