summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Toolset.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-06-22 20:17:45 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-06-22 20:17:45 +0000
commit6e2e453831354dbdc82a0ac2bc9f377f13163718 (patch)
tree1f95bc9f7d492c3c46d4c17d179933568ddfcd51 /src/lib/Client/Toolset.py
parent60bfbdbe96674e3c07556ad5c2717333e1d7b734 (diff)
downloadbcfg2-6e2e453831354dbdc82a0ac2bc9f377f13163718.tar.gz
bcfg2-6e2e453831354dbdc82a0ac2bc9f377f13163718.tar.bz2
bcfg2-6e2e453831354dbdc82a0ac2bc9f377f13163718.zip
fix IOError (broken pipe)
(Logical change 1.236) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@987 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Toolset.py')
-rw-r--r--src/lib/Client/Toolset.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 6b0f7f21e..98ab93493 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -53,7 +53,10 @@ class Toolset(object):
def CondPrint(self, state, msg):
'''Conditionally print message'''
if self.setup[state]:
- print msg
+ try:
+ print msg
+ except IOError:
+ pass
def LogFailure(self, area, entry):
'''Print tracebacks in unexpected cases'''