mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Ignore shutdown exception in cheroot
This commit is contained in:
parent
f1d44c051d
commit
55573d26ea
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,7 @@ import os
|
||||||
import ssl
|
import ssl
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import cheroot.errors
|
||||||
import cherrypy
|
import cherrypy
|
||||||
|
|
||||||
import plexpy
|
import plexpy
|
||||||
|
@ -260,6 +261,13 @@ def initialize(options):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Catch shutdown errors that can break cherrypy/cheroot
|
||||||
|
# See https://github.com/cherrypy/cheroot/issues/710
|
||||||
|
try:
|
||||||
|
cheroot.errors.acceptable_sock_shutdown_exceptions += (OSError,)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
cherrypy.tree.mount(WebInterface(), options['http_root'], config=conf)
|
cherrypy.tree.mount(WebInterface(), options['http_root'], config=conf)
|
||||||
if plexpy.HTTP_ROOT != '/':
|
if plexpy.HTTP_ROOT != '/':
|
||||||
cherrypy.tree.mount(BaseRedirect(), '/')
|
cherrypy.tree.mount(BaseRedirect(), '/')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue