Even better validation
This commit is contained in:
parent
583586c01a
commit
6b94a0a95e
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class Command(BaseCommand):
|
||||||
else:
|
else:
|
||||||
promo = self.get_current_promo()
|
promo = self.get_current_promo()
|
||||||
|
|
||||||
if promo < 2000:
|
if promo < 2000 or promo > 2100:
|
||||||
raise CommandError("Promotion invalide : {}".format(promo))
|
raise CommandError("Promotion invalide : {}".format(promo))
|
||||||
|
|
||||||
verbosity = options["verbosity"]
|
verbosity = options["verbosity"]
|
||||||
|
|
Loading…
Reference in a new issue