From: Guillaume Pellerin Date: Tue, 16 Mar 2021 22:13:27 +0000 (+0100) Subject: fix no birthbay X-Git-Tag: 1.4.3~16 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=456b24e95ddfad788f5b6660558a51a27b1397ed;p=teleforma.git fix no birthbay --- 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)