Commit 722d8754 by devttys0

Fixed broken pipe IOError message

parent 7ee4572f
...@@ -99,8 +99,11 @@ class Display(object): ...@@ -99,8 +99,11 @@ class Display(object):
line = fmt % tuple(columns) line = fmt % tuple(columns)
if not self.quiet and stdout: if not self.quiet and stdout:
try:
sys.stdout.write(self._format_line(line.strip()) + "\n") sys.stdout.write(self._format_line(line.strip()) + "\n")
sys.stdout.flush() sys.stdout.flush()
except IOError as e:
pass
if self.fp and not (self.csv and not csv): if self.fp and not (self.csv and not csv):
self.log(fmt, columns) self.log(fmt, columns)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment