Fixed set_int/sync problem in GrampsCfg, caught BadGEDCOM exception.

svn: r1130
This commit is contained in:
Don Allingham
2002-09-08 19:37:56 +00:00
parent f5a3b05808
commit 2bf289af25
2 changed files with 16 additions and 1 deletions

View File

@@ -135,7 +135,16 @@ def importData(database, filename, cb=None):
gnome.ui.GnomeErrorDialog(_("%s could not be opened\n") % filename)
return
close = g.parse_gedcom_file()
try:
close = g.parse_gedcom_file()
except GedcomParser.BadFile, msg:
Utils.destroy_passed_object(statusWindow)
gnome.ui.GnomeErrorDialog(_("Failure reading %s: %s\n"
"First line should have been '0 HEAD'\n"
"but was '%s'") %
(filename,GedcomParser.BadFile,msg))
return
g.resolve_refns()
statusTop.get_widget("close").set_sensitive(1)