You delete a person, so the person is deleted as child in the family he is child in, but apparently that family did not exist.

It is best to:
1/take a backup as .gramps file and keep it save
2/in the tools menu, run the rebuild reference table tool, rebuild sec index tool and the check and repair tool. In consistencies like people who refer to unexisting families are resolved like that. They can be due to a bug, or due to bugs in older versions that caused this and now are resolved already. Should you think the incorrect person/family link was created in 2.2.10 and you thinkg to know how to reproduce it, let us know.

Benny

2008/2/16, Robert V. Schipper <rvs@nfia-india.com>:
User Information:
===================

I was removing a person after I had removed the family of which the
father was the only parent as well as the father.


Error Details:
===================

242148073: ERROR: gramps.py: line 148: Unhandled exception
Traceback (most recent call last):
  File "C:\Program Files\gramps\DataViews\_PersonView.py", line 597, in
remove
    self.delete_person_response)
  File "C:\Program Files\gramps\QuestionDialog.py", line 104, in __init__
    task()
  File "C:\Program Files\gramps\DataViews\_PersonView.py", line 614, in
delete_person_response
    GrampsDb.delete_person_from_database(self.dbstate.db, person, trans)
  File "C:\Program Files\gramps\GrampsDb\_DbUtils.py", line 57, in
delete_person_from_database
    family.remove_child_handle(person.get_handle())
AttributeError: 'NoneType' object has no attribute 'remove_child_handle'


System Information:
===================

Python version: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32
bit (Intel)]
BSDDB version: 4.4.5.2
Gramps version: 2.2.10-1
LANG:
OS: win32
Distribution:


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs