other places like this just catch IOError

This commit is contained in:
Benjamin Peterson 2009-04-14 22:02:08 +00:00
parent 55fc9ce7e1
commit 54f963e5bf
1 changed files with 1 additions and 1 deletions

View File

@ -1438,7 +1438,7 @@ class TextIOWrapper(TextIOBase):
def close(self): def close(self):
try: try:
self.flush() self.flush()
except: except IOError:
pass # If flush() fails, just give up pass # If flush() fails, just give up
self.buffer.close() self.buffer.close()