Check for none case

merge-requests/30/head
Bob Mottram 2022-07-09 23:56:33 +01:00
parent 1128d1ad6c
commit 00203624f5
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ def _standardize_text_range(text: str,
def standardize_text(text: str) -> str:
"""Converts fancy unicode text to ordinary letters
"""
if not text:
return text
char_ranges = (
[65345, 'a'],
[119886, 'a'],