We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aefd384 commit eacd769Copy full SHA for eacd769
services/web/server/src/simcore_service_webserver/exception_handling/_base.py
@@ -102,13 +102,15 @@ async def __aenter__(self):
102
103
async def __aexit__(
104
self,
105
- exc_type: type[Exception] | None,
106
- exc_value: Exception | None,
+ exc_type: type[BaseException] | None,
+ exc_value: BaseException | None,
107
traceback: TracebackType | None,
108
) -> bool:
109
if (
110
exc_value is not None
111
and exc_type is not None
112
+ and issubclass(exc_type, Exception)
113
+ and isinstance(exc_value, Exception)
114
and (exc_handler := self._get_exc_handler_or_none(exc_type, exc_value))
115
):
116
self._response = await exc_handler(
0 commit comments