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:
1 parent
387be8651c
commit
b98077ea68
1 file changed
+4
-1
+4
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user