aboutsummaryrefslogtreecommitdiff
path: root/management
diff options
context:
space:
mode:
authorAlban Gruin2017-01-22 12:23:11 +0100
committerAlban Gruin2017-01-22 12:23:11 +0100
commit3f0efad5ee4069d5387e742f346f8d782607fa96 (patch)
tree2bfc5204f25c0d0670608e16864aa8c92aaee0ce /management
parent9e8d4c492b0178214fb1997ff46335cfd4015557 (diff)
Correction d'un crash se provoquant lors de la lecture des arguments de la commande
Diffstat (limited to 'management')
-rw-r--r--management/commands/timetables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/management/commands/timetables.py b/management/commands/timetables.py
index 9882759..6412b7e 100644
--- a/management/commands/timetables.py
+++ b/management/commands/timetables.py
@@ -52,7 +52,7 @@ class Command(BaseCommand):
if options["year"] is None and year is None:
year = timezone.now().year
- else:
+ elif year is None:
year = options["year"][0]
for timetable in Timetable.objects.all():