Do not print traceback when pipe is broken

https://fedorahosted.org/freeipa/ticket/2284

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Gabe authored and Jan Cholasta committed 2015-06-02 13:56:19 +00:00
1 parent 387be8651c
commit b98077ea68
1 file changed
+4 -1
+4 -1
View File
@@ -799,7 +799,10 @@ class help(frontend.Local):
def _writer(self, outfile):
def writer(string=''):
print >> outfile, unicode(string)
try:
print >> outfile, unicode(string)
except IOError:
pass
return writer
def print_topics(self, outfile):