6346: If a exporter plugin crashes, the Export Assistant can't be closed

svn: r21806
This commit is contained in:
Benny Malengier 2013-03-29 13:18:53 +00:00
parent c5982a4514
commit cfd162ec85

View File

@ -579,6 +579,8 @@ class ExportAssistant(Gtk.Assistant, ManagedWindow) :
Depending on the success status, set the text for the final page. Depending on the success status, set the text for the final page.
""" """
success = False
try:
if (self.option_box_instance and if (self.option_box_instance and
hasattr(self.option_box_instance, "no_fileselect")): hasattr(self.option_box_instance, "no_fileselect")):
filename = "" filename = ""
@ -592,6 +594,10 @@ class ExportAssistant(Gtk.Assistant, ManagedWindow) :
filename, filename,
User(error=ErrorDialog, callback=self.callback), User(error=ErrorDialog, callback=self.callback),
self.option_box_instance) self.option_box_instance)
except:
#an error not catched in the export_function itself
success = False
log.error(_("Error exporting your family tree"), exc_info=True)
return success return success
def pre_save(self,page): def pre_save(self,page):