6668: number of arguments for notify_db_error() into Export assistant

svn: r22148
This commit is contained in:
Jérôme Rapinat 2013-05-02 18:15:00 +00:00
parent c685be2973
commit eb0bbd43d1
2 changed files with 3 additions and 3 deletions

View File

@ -1457,5 +1457,5 @@ def export_data(database, filename, user, option_box=None):
msg2 = _("Could not create %s") % filename
user.notify_error(msg2, str(msg))
except DatabaseError as msg:
user.notify_db_error(_("Export failed"), str(msg))
user.notify_db_error("%s\n%s" % (_("GEDCOM Export failed"), str(msg)))
return ret

View File

@ -1317,6 +1317,6 @@ class XmlWriter(GrampsXmlWriter):
try:
ret = GrampsXmlWriter.write(self, filename)
except DbWriteFailure as msg:
(m1,m2) = msg.messages()
self.user.notify_db_error(m1, m2)
(m1, m2) = msg.messages()
self.user.notify_db_error("%s\n%s" % (m1, m2))
return ret