From 5c2e433ff3f9bba9095fea7dbbd3a4561a472d4a Mon Sep 17 00:00:00 2001 From: James G Sack Date: Wed, 7 Nov 2007 19:35:42 +0000 Subject: [PATCH] fix typos in cl_export (exporting gedcom) bug #353 svn: r9319 --- ChangeLog | 4 ++++ src/ArgHandler.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2e7ec87f2..d3d93b230 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-07 Jim Sack + * src/ArgHandler.py: typos in cl_export at L562,3 bug #1353 + triggered by exporting gedcom + 2007-11-07 Benny Malengier * src/AddMedia.py: fix issue #1350, relative path not working addmedia * src/Editors/_EditPerson.py: family rebuild callback error diff --git a/src/ArgHandler.py b/src/ArgHandler.py index 2a05ae03b..3e58fe26b 100644 --- a/src/ArgHandler.py +++ b/src/ArgHandler.py @@ -559,8 +559,8 @@ class ArgHandler: gw = GrampsDb.GedcomWriter(self.state.db,None,1,filename) ret = gw.export_data(filename) except: - print "Error exporting %s" % filename - sys._xit(msg) + msg = "Error exporting %s" % filename + sys.exit(msg) elif format == 'gramps-xml': filename = os.path.normpath(os.path.abspath(filename)) if filename: