3428: When running with pythonw.exe, Windows may crash if you write to stdout

svn: r14396
This commit is contained in:
Doug Blank
2010-02-16 02:18:24 +00:00
parent 7f1c3f0e70
commit 7f5e91d9ea
10 changed files with 138 additions and 165 deletions

View File

@@ -149,7 +149,7 @@ class GrampsXmlWriter(UpdateCallback):
else:
g = open(filename,"w")
except IOError,msg:
print str(msg)
LOG.warn(str(msg))
raise DbWriteFailure((_('Failure writing %s') % filename,
str(msg)))
return 0