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
ged_write = GedcomWriter(database, person, 0, try:
option_box, callback) ged_write = GedcomWriter(database, person, 0,
ret = ged_write.write_gedcom_file(filename) option_box, callback)
#try: ret = ged_write.write_gedcom_file(filename)
# ged_write = GedcomWriter(database, person, 0, except IOError, msg:
# option_box, callback) msg2 = _("Could not create %s") % filename
# ret = ged_write.write_gedcom_file(filename) ErrorDialog(msg2, str(msg))
#except IOError, msg: except Errors.DatabaseError, msg:
# msg2 = _("Could not create %s") % filename ErrorDialog(_("Export failed"), str(msg))
# ErrorDialog(msg2, str(msg)) except:
#except Errors.DatabaseError, msg: ErrorDialog(_("Could not create %s") % filename)
# ErrorDialog(_("Export failed"), str(msg))
#except:
# ErrorDialog(_("Could not create %s") % filename)
return ret return ret
#------------------------------------------------------------------------- #-------------------------------------------------------------------------