Skip to content

Commit 8f01e4a

Browse files
fix pylint
1 parent c7729b0 commit 8f01e4a

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

services/web/server/src/simcore_service_webserver/application.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint:disable=too-many-statements
12
"""Main application"""
23

34
import logging

services/web/server/src/simcore_service_webserver/conversations/_controller/rest_exceptions.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
1-
from servicelib.aiohttp import status
2-
3-
from ...constants import MSG_TRY_AGAIN_OR_SUPPORT
41
from ...exception_handling import (
52
ExceptionToHttpErrorMap,
6-
HttpErrorInfo,
73
exception_handling_decorator,
84
to_exceptions_handlers_map,
95
)
10-
from ..errors import MissingStripeConfigError, ProductNotFoundError
116

12-
_TO_HTTP_ERROR_MAP: ExceptionToHttpErrorMap = {
13-
ProductNotFoundError: HttpErrorInfo(
14-
status.HTTP_404_NOT_FOUND,
15-
"{product_name} was not found",
16-
),
17-
MissingStripeConfigError: HttpErrorInfo(
18-
status.HTTP_503_SERVICE_UNAVAILABLE,
19-
"{product_name} service is currently unavailable." + MSG_TRY_AGAIN_OR_SUPPORT,
20-
),
21-
}
7+
_TO_HTTP_ERROR_MAP: ExceptionToHttpErrorMap = {}
228

239

2410
handle_rest_requests_exceptions = exception_handling_decorator(

0 commit comments

Comments
 (0)