Skip to content

Commit

Permalink
Merge pull request #3071 from LeoCx1000/patch-1
Browse files Browse the repository at this point in the history
Fix faulty hyperlink in charinfo command.
  • Loading branch information
wookie184 committed May 23, 2024
2 parents 9464e47 + fc2575a commit 494a110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/exts/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_info(char: str) -> tuple[str, str]:
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

Expand Down

0 comments on commit 494a110

Please sign in to comment.