From 456b24e95ddfad788f5b6660558a51a27b1397ed Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 16 Mar 2021 23:13:27 +0100 Subject: [PATCH] fix no birthbay --- teleforma/views/crfpa.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/teleforma/views/crfpa.py b/teleforma/views/crfpa.py index 99effff9..6dc250c0 100644 --- a/teleforma/views/crfpa.py +++ b/teleforma/views/crfpa.py @@ -439,7 +439,10 @@ class UserXLSBook(object): profile.city = city profile.telephone = tel if birth: - profile.birthday = self.date_str_to_date(birth) + try: + profile.birthday = self.date_str_to_date(birth) + except: + pass profile.save() student = Student(user=user) -- 2.39.5