]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Catch both IOError and OSError in another place.
authorBen Darnell <bdarnell@beaker.local>
Sat, 16 Jan 2010 04:27:42 +0000 (20:27 -0800)
committerBen Darnell <bdarnell@beaker.local>
Sat, 16 Jan 2010 04:27:42 +0000 (20:27 -0800)
tornado/httpclient.py

index 7819bd3bb7fc7a990ec49ac416305143d3637819..923f301849b84e6261628399dbcffe330f05b043 100644 (file)
@@ -220,7 +220,7 @@ class AsyncHTTPClient(object):
             elif old_events != events:
                 try:
                     self.io_loop.update_handler(fd, events)
-                except OSError, e:
+                except (OSError, IOError), e:
                     if e[0] == errno.ENOENT:
                         self.io_loop.add_handler(fd, self._handle_events,
                                                  events)
@@ -313,7 +313,7 @@ class HTTPError(Exception):
         self.code = code
         message = message or httplib.responses.get(code, "Unknown")
         Exception.__init__(self, "HTTP %d: %s" % (self.code, message))
-                
+
 
 class CurlError(HTTPError):
     def __init__(self, errno, message):