From fc2575a0d9ba517c31dc1e0e8824686d2d32072b Mon Sep 17 00:00:00 2001 From: Leonardo Date: Thu, 23 May 2024 20:55:20 +0200 Subject: Give default name to unicode character. --- bot/exts/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3