6668: number of arguments for notify_db_error() into Export assistant
svn: r22147
This commit is contained in:
parent
022ff28d94
commit
09306a357c
@ -1457,5 +1457,5 @@ def export_data(database, filename, user, option_box=None):
|
|||||||
msg2 = _("Could not create %s") % filename
|
msg2 = _("Could not create %s") % filename
|
||||||
user.notify_error(msg2, str(msg))
|
user.notify_error(msg2, str(msg))
|
||||||
except DatabaseError as 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
|
return ret
|
||||||
|
@ -1298,5 +1298,5 @@ class XmlWriter(GrampsXmlWriter):
|
|||||||
ret = GrampsXmlWriter.write(self, filename)
|
ret = GrampsXmlWriter.write(self, filename)
|
||||||
except DbWriteFailure as msg:
|
except DbWriteFailure as msg:
|
||||||
(m1, m2) = msg.messages()
|
(m1, m2) = msg.messages()
|
||||||
self.user.notify_db_error(m1, m2)
|
self.user.notify_db_error("%s\n%s" % (m1, m2))
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user