mirror of https://github.com/morpheus65535/bazarr
Fix for 'BrokenPipeError' is not defined under Python 2.7.x.
This commit is contained in:
parent
1eb174d9ef
commit
4f996e4f2e
|
@ -2251,7 +2251,9 @@ def api_help():
|
|||
|
||||
|
||||
# Mute DeprecationWarning
|
||||
warnings.simplefilter("ignore", (DeprecationWarning, BrokenPipeError))
|
||||
warnings.simplefilter("ignore", DeprecationWarning)
|
||||
if six.PY3:
|
||||
warnings.simplefilter("ignore", BrokenPipeError)
|
||||
server = CherryPyWSGIServer((str(settings.general.ip), (int(args.port) if args.port else int(settings.general.port))), app)
|
||||
try:
|
||||
logging.info('BAZARR is started and waiting for request on http://' + str(settings.general.ip) + ':' + (str(
|
||||
|
|
Loading…
Reference in New Issue