Skip to content

Commit cbd1567

Browse files
committed
validation error fixed
1 parent 1929b54 commit cbd1567

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rate_projects/validators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def _validate_data_type(self):
1414
float(self.value)
1515
except ValueError:
1616
raise ValueError("Введённое значение не соответствует формату!")
17+
except TypeError:
18+
raise TypeError("Вы не ввели никакие данные!")
1719

1820
elif (self.criteria_type == "bool") and (self.value not in ["True", "False"]):
1921
raise TypeError("Введённое значение не соответствует формату!")

0 commit comments

Comments
 (0)