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 1929b54 commit cbd1567Copy full SHA for cbd1567
rate_projects/validators.py
@@ -14,6 +14,8 @@ def _validate_data_type(self):
14
float(self.value)
15
except ValueError:
16
raise ValueError("Введённое значение не соответствует формату!")
17
+ except TypeError:
18
+ raise TypeError("Вы не ввели никакие данные!")
19
20
elif (self.criteria_type == "bool") and (self.value not in ["True", "False"]):
21
raise TypeError("Введённое значение не соответствует формату!")
0 commit comments