File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
services/web/server/src/simcore_service_webserver
conversations/_controller Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 1+ # pylint:disable=too-many-statements
12"""Main application"""
23
34import logging
Original file line number Diff line number Diff line change 1- from servicelib .aiohttp import status
2-
3- from ...constants import MSG_TRY_AGAIN_OR_SUPPORT
41from ...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
2410handle_rest_requests_exceptions = exception_handling_decorator (
You can’t perform that action at this time.
0 commit comments