]> git.parisson.com Git - teleforma.git/commitdiff
fix no birthbay
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 16 Mar 2021 22:13:27 +0000 (23:13 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 16 Mar 2021 22:13:27 +0000 (23:13 +0100)
teleforma/views/crfpa.py

index 99effff902e4ece57b91dccc1c5703149bfe078c..6dc250c0ebc59e84f356974935fc8724374279fe 100644 (file)
@@ -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)