other places like this just catch IOError
This commit is contained in:
parent
55fc9ce7e1
commit
54f963e5bf
|
@ -1438,7 +1438,7 @@ class TextIOWrapper(TextIOBase):
|
|||
def close(self):
|
||||
try:
|
||||
self.flush()
|
||||
except:
|
||||
except IOError:
|
||||
pass # If flush() fails, just give up
|
||||
self.buffer.close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue