From 09306a357cee3c47a37c560f0018bf1597c632a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Thu, 2 May 2013 18:06:59 +0000 Subject: [PATCH] 6668: number of arguments for notify_db_error() into Export assistant svn: r22147 --- gramps/plugins/export/exportgedcom.py | 2 +- gramps/plugins/export/exportxml.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/export/exportgedcom.py b/gramps/plugins/export/exportgedcom.py index fc36ea28b..9e92a896c 100644 --- a/gramps/plugins/export/exportgedcom.py +++ b/gramps/plugins/export/exportgedcom.py @@ -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 diff --git a/gramps/plugins/export/exportxml.py b/gramps/plugins/export/exportxml.py index f6b4713e6..958d500ed 100644 --- a/gramps/plugins/export/exportxml.py +++ b/gramps/plugins/export/exportxml.py @@ -1297,6 +1297,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