From 2a320ace47907ffa183a6209e7dfb838fd38bef3 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 4 Jul 2006 05:43:22 +0000 Subject: [PATCH] Test svn: r6986 --- gramps2/src/GrampsDb/_WriteXML.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gramps2/src/GrampsDb/_WriteXML.py b/gramps2/src/GrampsDb/_WriteXML.py index 486654931..55dcbe650 100644 --- a/gramps2/src/GrampsDb/_WriteXML.py +++ b/gramps2/src/GrampsDb/_WriteXML.py @@ -160,17 +160,17 @@ class XmlWriter(UpdateCallback): return 0 self.fileroot = os.path.dirname(filename) - try: - if self.compress: - try: - g = gzip.open(filename,"wb") - except: - g = open(filename,"w") - else: +# try: + if self.compress: + try: + g = gzip.open(filename,"wb") + except: g = open(filename,"w") - except IOError,msg: + else: + g = open(filename,"w") +# except IOError,msg: ErrorDialog(_('Failure writing %s') % filename,msg) - return 0 +# return 0 self.g = codecs.getwriter("utf8")(g)