Update on validation string error

This commit is contained in:
Luis Aleixo 2022-08-12 11:51:32 +01:00
parent fc20bc9e9d
commit a6454987f2

View file

@ -187,7 +187,7 @@ class FormData:
def validate(self):
# Validate number of infected <= number of total people
if self.infected_people > self.total_people:
raise ValueError('Number of infected people should be less than number of total people.')
raise ValueError('Number of infected people cannot be more than number of total people.')
# Validate time intervals selected by user
time_intervals = [