Add OSError to catched Gevent Error
This commit is contained in:
parent
f9995583a5
commit
5792838333
@ -150,7 +150,7 @@ class WebServer(object):
|
|||||||
def my_wrap_socket(*args, **kwargs):
|
def my_wrap_socket(*args, **kwargs):
|
||||||
try:
|
try:
|
||||||
return wrap_socket(*args, **kwargs)
|
return wrap_socket(*args, **kwargs)
|
||||||
except (ssl.SSLError) as ex:
|
except (ssl.SSLError, OSError) as ex:
|
||||||
log.warning('Gevent SSL Error: %s', ex)
|
log.warning('Gevent SSL Error: %s', ex)
|
||||||
raise GreenletExit
|
raise GreenletExit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user