From 00203624f51f57790ecd3b389ab445ab2c23363e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 9 Jul 2022 23:56:33 +0100 Subject: [PATCH] Check for none case --- utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils.py b/utils.py index 6b0d8c258..38f87e37e 100644 --- a/utils.py +++ b/utils.py @@ -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'],