Skip to content

Commit

Permalink
Merge pull request #13159 from PennyDreadfulMTG/new-prices
Browse files Browse the repository at this point in the history
Avoid an error when trying to sanitize Ratonhnhaké꞉ton
  • Loading branch information
mergify[bot] committed Sep 27, 2024
2 parents 12e7201 + c5d67a2 commit 55bbe20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shared/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ def sanitize(s: str) -> str:
s = s.encode('latin-1').decode('utf-8')
except UnicodeDecodeError:
pass
except UnicodeEncodeError:
pass
return html.unescape(s)

def unambiguous_prefixes(words: list[str]) -> list[str]:
Expand Down

0 comments on commit 55bbe20

Please sign in to comment.