summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/cli.py5
1 files changed, 4 insertions, 1 deletions
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):