Remove debugging code

svn: r10896
This commit is contained in:
Gary Burton 2008-07-21 18:35:37 +00:00
parent 4067aaed0f
commit 8eec2297bb

View File

@ -1495,20 +1495,17 @@ def export_data(database, filename, person, option_box, callback=None):
External interface used to register with the plugin system. External interface used to register with the plugin system.
""" """
ret = False ret = False
try:
ged_write = GedcomWriter(database, person, 0, ged_write = GedcomWriter(database, person, 0,
option_box, callback) option_box, callback)
ret = ged_write.write_gedcom_file(filename) ret = ged_write.write_gedcom_file(filename)
#try: except IOError, msg:
# ged_write = GedcomWriter(database, person, 0, msg2 = _("Could not create %s") % filename
# option_box, callback) ErrorDialog(msg2, str(msg))
# ret = ged_write.write_gedcom_file(filename) except Errors.DatabaseError, msg:
#except IOError, msg: ErrorDialog(_("Export failed"), str(msg))
# msg2 = _("Could not create %s") % filename except:
# ErrorDialog(msg2, str(msg)) ErrorDialog(_("Could not create %s") % filename)
#except Errors.DatabaseError, msg:
# ErrorDialog(_("Export failed"), str(msg))
#except:
# ErrorDialog(_("Could not create %s") % filename)
return ret return ret
#------------------------------------------------------------------------- #-------------------------------------------------------------------------