Skip to content

Commit fe4fc57

Browse files
committed
fixe pylint
1 parent 4ba3d20 commit fe4fc57

File tree

1 file changed

+3
-9
lines changed
  • services/web/server/src/simcore_service_webserver/login

1 file changed

+3
-9
lines changed

services/web/server/src/simcore_service_webserver/login/plugin.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import logging
2-
from typing import Final
32

43
from aiohttp import web
54
from pydantic import ValidationError
65
from settings_library.email import SMTPSettings
76

8-
from .._meta import APP_NAME
97
from ..application_setup import (
108
ModuleCategory,
119
app_setup_func,
@@ -42,14 +40,10 @@
4240
LoginSettingsForProduct,
4341
)
4442

45-
log = logging.getLogger(__name__)
43+
_logger = logging.getLogger(__name__)
4644

47-
APP_LOGIN_CLIENT_KEY: Final = web.AppKey("APP_LOGIN_CLIENT_KEY", object)
4845

49-
MAX_TIME_TO_CLOSE_POOL_SECS = 5
50-
51-
52-
@ensure_single_setup(f"{__name__}.login_options", logger=log)
46+
@ensure_single_setup(f"{__name__}.login_options", logger=_logger)
5347
def _setup_login_options(app: web.Application):
5448
settings: SMTPSettings = get_email_plugin_settings(app)
5549

@@ -108,7 +102,7 @@ async def _resolve_login_settings_per_product(app: web.Application):
108102
"simcore_service_webserver.login",
109103
ModuleCategory.ADDON,
110104
settings_name="WEBSERVER_LOGIN",
111-
logger=log,
105+
logger=_logger,
112106
)
113107
def setup_login(app: web.Application):
114108
"""Setting up login subsystem in application"""

0 commit comments

Comments
 (0)