aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-01-24 16:05:30 +0100
committerAlban Gruin2017-01-24 16:05:30 +0100
commit69fde609d36c63891cdbaad8428884aa1873cde3 (patch)
treeed2816e503f8dbc6fa88c52ba3d40eb70544469f
parent0b12914242f5c4def3cc86d44e370c6ad44920db (diff)
Enregistrement de la dernière date même si aucune exception n'a été levée
-rw-r--r--management/commands/timetables.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/management/commands/timetables.py b/management/commands/timetables.py
index 809b600..c18db9e 100644
--- a/management/commands/timetables.py
+++ b/management/commands/timetables.py
@@ -31,6 +31,7 @@ def process_timetable_week(timetable, year, week, soup, weeks_in_soup):
last_update.date = date
except:
last_update = LastUpdate(timetable=timetable, year=year, week=week, date=date)
+ finally:
last_update.save()
def process_timetable(timetable, year, weeks):