From 6e2e453831354dbdc82a0ac2bc9f377f13163718 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 22 Jun 2005 20:17:45 +0000 Subject: 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 --- src/lib/Client/Toolset.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/Client/Toolset.py') 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''' -- cgit v1.2.3-1-g7c22