Nidhal Baccouri
commited on
Commit
·
4d9ac99
1
Parent(s):
4522b30
allowed digit translation
Browse files
deep_translator/validate.py
CHANGED
@@ -20,7 +20,7 @@ def is_input_valid(
|
|
20 |
@return: bool
|
21 |
"""
|
22 |
|
23 |
-
if not isinstance(text, str)
|
24 |
raise NotValidPayload(text)
|
25 |
if max_chars and (not min_chars <= len(text) < max_chars):
|
26 |
raise NotValidLength(text, min_chars, max_chars)
|
|
|
20 |
@return: bool
|
21 |
"""
|
22 |
|
23 |
+
if not isinstance(text, str):
|
24 |
raise NotValidPayload(text)
|
25 |
if max_chars and (not min_chars <= len(text) < max_chars):
|
26 |
raise NotValidLength(text, min_chars, max_chars)
|