diff --git a/gramps/src/WriteXML.py b/gramps/src/WriteXML.py index 385c6cbce..9e059f7af 100644 --- a/gramps/src/WriteXML.py +++ b/gramps/src/WriteXML.py @@ -487,9 +487,6 @@ def exportData(database, filename, callback): GnomeErrorDialog(_("Failure writing %s, original file restored") % filename) shutil.copy(filename + ".bak", filename) - if not g.closed: - g.close() - def write_xml_data(database, g, callback, sp): global strip_photo