[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] [bug #45350] Error message : "none type" object has no attr

From: Roberto Novaes
Subject: [Health-dev] [bug #45350] Error message : "none type" object has no attribute "id" when father/mother name is not filled in birth certificate modu
Date: Fri, 19 Jun 2015 17:26:37 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

Follow-up Comment #1, bug #45350 (project health):

I have run onto the same problem. I do not think, though, that making father
or mother mandatory is a good solution, because it is very common to have
birth certificates without a father and, sometimes, without even a mother.
This can happen for many reasons: parents are unknown, abandoned child,
incomplete registration procedures, etc. I think the best solution would be to
treat the exception, something like:

def get_father(self, name):
    if (self.birth_certificate):
        except SomeError:


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]