We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 569cc83 commit 9fba995Copy full SHA for 9fba995
pythainlp/util/digitconv.py
@@ -162,7 +162,7 @@ def text_to_arabic_digit(text: str) -> str:
162
# output: True
163
"""
164
if not isinstance(text, str):
165
- return TypeError("The text must be str type.")
+ raise TypeError("The text must be str type.")
166
elif not text or text not in _spell_digit:
167
return ""
168
@@ -200,6 +200,6 @@ def text_to_thai_digit(text: str) -> str:
200
201
202
if not text or not isinstance(text, str):
203
204
205
return arabic_digit_to_thai_digit(text_to_arabic_digit(text))
0 commit comments