From 0f823d002eeb5166ea1089dd0e5185bf22ecd56c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 15 May 2020 15:32:46 -0400 Subject: [PATCH] WIP --- bazarr/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index 9fb109f95..8c5682cec 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -466,6 +466,8 @@ def test_notification(protocol, provider): class Server: try: + server + except NameError: if args.dev: server = app.run(host=str(settings.general.ip), port=(int(args.port) if args.port else int(settings.general.port))) @@ -474,8 +476,6 @@ class Server: host=str(settings.general.ip), port=int(args.port) if args.port else int(settings.general.port), threads=24) - except: - pass def __init__(self): # Mute DeprecationWarning