2.2.9 has a bug not allowing you to directly edit XML files.
Direct edit of XML is anyway something you should try not to do, better is to import in .grdb database, do your work, and export to xml if you need a backup or for other reasons.

If however you need direct edit of XML, you should use 2.2.8 instead, or use the development version branch22 in subversion where this is already solved.
2.2.10 is not planned at the moment though, we considered this a minor annoyance only. Are you sure your data was corrupted because of this? That would make this bug high priority instead.

Benny

2007/12/17, Graham Williams < Graham.Williams@togaware.com>:
User Information:
===================

This error occurs on exiting from Gramps.
The message claims that the data file will be okay,
and I should restart immediately,
However, the file is corrupted and had to be
recovered from a backup.


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

58288: ERROR: gramps.py: line 147: Unhandled exception
Traceback (most recent call last):
  File "/usr/share/gramps/ViewManager.py", line 492, in quit
    self.state.db.close ()
  File "/usr/share/gramps/GrampsDb/_GrampsXMLDB.py", line 76, in close
    quick_write(self,self.full_name)
  File "/usr/share/gramps/GrampsDb/_WriteXML.py", line 111, in
  quick_write
    g.write(filename)
  File "/usr/share/gramps/GrampsDb/_WriteXML.py", line 178, in write
    self.write_xml_data()
  File "/usr/share/gramps/GrampsDb/_WriteXML.py", line 278, in
  write_xml_data
    self.write_family(family,2)
  File "/usr/share/gramps/GrampsDb/_WriteXML.py", line 453, in
  write_family
    fhandle = family.get_father_handle()
AttributeError: 'NoneType' object has no attribute 'get_father_handle'


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

Python version: 2.4.4 (#2, Aug 16 2007, 00:34:54) [GCC 4.1.3 20070812
(prerelease) (Debian 4.1.2-15)]
BSDDB version: 4.3.0.3
Gramps version: 2.2.9-1
LANG: en_AU.UTF-8
OS: Linux
Distribution: 2.6.22-3-amd64

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs