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
2015-05-22 09:25:08 -06:00
committed by Jan Cholasta
parent 387be8651c
commit b98077ea68

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):