From 5792838333b49d1ee896b1abfb8107337ecdee76 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 20 Oct 2020 17:38:37 +0200 Subject: [PATCH] Add OSError to catched Gevent Error --- cps/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/server.py b/cps/server.py index de98fc6e..b2d9c1b0 100644 --- a/cps/server.py +++ b/cps/server.py @@ -150,7 +150,7 @@ class WebServer(object): def my_wrap_socket(*args, **kwargs): try: return wrap_socket(*args, **kwargs) - except (ssl.SSLError) as ex: + except (ssl.SSLError, OSError) as ex: log.warning('Gevent SSL Error: %s', ex) raise GreenletExit