From f83c7c48024fca25439bfded409c771107a87d77 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 16 Aug 2016 00:52:13 +0100 Subject: [PATCH] Don't bury EBADF errors. --- econtext/core.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/econtext/core.py b/econtext/core.py index a68cdebe..93b270b4 100644 --- a/econtext/core.py +++ b/econtext/core.py @@ -236,11 +236,7 @@ class Side(object): def close(self): if self.fd is not None: IOLOG.debug('%r.close()', self) - try: - os.close(self.fd) - except OSError, e: - if e.errno != errno.EBADF: - LOG.error('%r: close failed', self, e) + os.close(self.fd) self.fd = None