diff options
-rw-r--r-- | cherrypy/test/webtest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cherrypy/test/webtest.py b/cherrypy/test/webtest.py index c9aeb71d..959063f5 100644 --- a/cherrypy/test/webtest.py +++ b/cherrypy/test/webtest.py @@ -545,8 +545,7 @@ def openURL(url, headers=None, method="GET", body=None, return s, h, b except socket.error as e: - if (raise_subcls is not None and - issubclass(e.__class__, raise_subcls)): + if raise_subcls is not None and isinstance(e, raise_subcls): raise else: time.sleep(0.5) |