From b98077ea6844eddd8810e4ae6ddd5bf40c61b58e Mon Sep 17 00:00:00 2001 From: Gabe Date: Fri, 22 May 2015 09:25:08 -0600 Subject: Do not print traceback when pipe is broken https://fedorahosted.org/freeipa/ticket/2284 Reviewed-By: Martin Basti --- ipalib/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 398b54863..52529ea02 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -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): -- cgit