1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 01:20:32 +00:00

Add OSError to catched Gevent Error

This commit is contained in:
Ozzieisaacs 2020-10-20 17:38:37 +02:00
parent f9995583a5
commit 5792838333

View File

@ -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