Remove debugging code
svn: r10896
This commit is contained in:
parent
4067aaed0f
commit
8eec2297bb
@ -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
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user