Skip to content
Browse files

Merge pull request #47 from spinda/ssl-error-subclass

Use `issubclass` when comparing error types in proxy
  • Loading branch information...
wkeeling committed May 7, 2019
2 parents e7687d8 + 16e8b13 commit 23d69eace63a67973807f315cf8d5f7c456c75a0
Showing with 1 addition and 1 deletion.
  1. +1 −1 seleniumwire/proxy/
@@ -40,7 +40,7 @@ class ThreadingHTTPServer(ThreadingMixIn, HTTPServer):
def handle_error(self, request, client_address):
# surpress socket/ssl related errors
cls, e = sys.exc_info()[:2]
if cls is socket.error or cls is ssl.SSLError:
if issubclass(cls, socket.error) or issubclass(cls, ssl.SSLError):
return HTTPServer.handle_error(self, request, client_address)

0 comments on commit 23d69ea

Please sign in to comment.
You can’t perform that action at this time.