diff --git a/docs/api-docs/slack_bolt/app/app.html b/docs/api-docs/slack_bolt/app/app.html
index 9490358d6..3e01431fc 100644
--- a/docs/api-docs/slack_bolt/app/app.html
+++ b/docs/api-docs/slack_bolt/app/app.html
@@ -539,15 +539,18 @@
Module slack_bolt.app.app
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -590,14 +593,17 @@ Module slack_bolt.app.app
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
except Exception as error:
@@ -1995,15 +2001,18 @@ Args
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -2046,14 +2055,17 @@ Args
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
except Exception as error:
@@ -3274,15 +3286,18 @@ Returns
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -3325,14 +3340,17 @@ Returns
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
except Exception as error:
diff --git a/docs/api-docs/slack_bolt/app/async_app.html b/docs/api-docs/slack_bolt/app/async_app.html
index f373a32e6..ecb30728e 100644
--- a/docs/api-docs/slack_bolt/app/async_app.html
+++ b/docs/api-docs/slack_bolt/app/async_app.html
@@ -563,15 +563,18 @@ Module slack_bolt.app.async_app
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -617,14 +620,17 @@ Module slack_bolt.app.async_app
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
@@ -1915,15 +1921,18 @@ Args
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -1969,14 +1978,17 @@ Args
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
@@ -2952,15 +2964,18 @@ Returns
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -3006,14 +3021,17 @@ Returns
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
diff --git a/docs/api-docs/slack_bolt/app/index.html b/docs/api-docs/slack_bolt/app/index.html
index 4175c54ac..6604ab567 100644
--- a/docs/api-docs/slack_bolt/app/index.html
+++ b/docs/api-docs/slack_bolt/app/index.html
@@ -588,15 +588,18 @@ Args
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -639,14 +642,17 @@ Args
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
except Exception as error:
@@ -1867,15 +1873,18 @@ Returns
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -1918,14 +1927,17 @@ Returns
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
except Exception as error:
diff --git a/docs/api-docs/slack_bolt/async_app.html b/docs/api-docs/slack_bolt/async_app.html
index e6b693440..902e18dfe 100644
--- a/docs/api-docs/slack_bolt/async_app.html
+++ b/docs/api-docs/slack_bolt/async_app.html
@@ -718,15 +718,18 @@ Args
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -772,14 +775,17 @@ Args
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
@@ -1755,15 +1761,18 @@ Returns
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -1809,14 +1818,17 @@ Returns
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- await self._async_listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ await self._async_listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
diff --git a/docs/api-docs/slack_bolt/error/index.html b/docs/api-docs/slack_bolt/error/index.html
index 827fecc42..fcc4de3fe 100644
--- a/docs/api-docs/slack_bolt/error/index.html
+++ b/docs/api-docs/slack_bolt/error/index.html
@@ -51,7 +51,10 @@ Module slack_bolt.error
self.request = request
self.body = request.body if request is not None else {}
self.current_response = current_response
- self.last_global_middleware_name = last_global_middleware_name
+ self.last_global_middleware_name = last_global_middleware_name
+
+ def __str__(self) -> str:
+ return "unhandled request error"
@@ -112,7 +115,10 @@ Subclasses
self.request = request
self.body = request.body if request is not None else {}
self.current_response = current_response
- self.last_global_middleware_name = last_global_middleware_name
+ self.last_global_middleware_name = last_global_middleware_name
+
+ def __str__(self) -> str:
+ return "unhandled request error"
Ancestors
diff --git a/docs/api-docs/slack_bolt/index.html b/docs/api-docs/slack_bolt/index.html
index fa7283542..3e741d194 100644
--- a/docs/api-docs/slack_bolt/index.html
+++ b/docs/api-docs/slack_bolt/index.html
@@ -726,15 +726,18 @@ Args
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -777,14 +780,17 @@ Args
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
except Exception as error:
@@ -2005,15 +2011,18 @@ Returns
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={"error": "no next() calls in middleware"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
last_global_middleware_name=middleware.name,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
self._framework_logger.warning(warning_unhandled_by_global_middleware(middleware.name, req))
return resp
@@ -2056,14 +2065,17 @@ Returns
if resp is None:
resp = BoltResponse(status=404, body={"error": "unhandled request"})
if self._raise_error_for_unhandled_request is True:
- self._listener_runner.listener_error_handler.handle(
- error=BoltUnhandledRequestError(
+ try:
+ raise BoltUnhandledRequestError(
request=req,
current_response=resp,
- ),
- request=req,
- response=resp,
- )
+ )
+ except BoltUnhandledRequestError as e:
+ self._listener_runner.listener_error_handler.handle(
+ error=e,
+ request=req,
+ response=resp,
+ )
return resp
return self._handle_unmatched_requests(req, resp)
except Exception as error:
diff --git a/docs/api-docs/slack_bolt/version.html b/docs/api-docs/slack_bolt/version.html
index a55652360..78c22351c 100644
--- a/docs/api-docs/slack_bolt/version.html
+++ b/docs/api-docs/slack_bolt/version.html
@@ -28,7 +28,7 @@ Module slack_bolt.version
Expand source code
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
-__version__ = "1.17.1"
+__version__ = "1.17.2"
diff --git a/setup.py b/setup.py
index 470188554..e56410465 100755
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@
),
include_package_data=True, # MANIFEST.in
install_requires=[
- "slack_sdk>=3.21.1,<4",
+ "slack_sdk>=3.21.2,<4",
],
setup_requires=["pytest-runner==5.2"],
tests_require=async_test_dependencies,
diff --git a/slack_bolt/version.py b/slack_bolt/version.py
index 02de47405..5b4966f0c 100644
--- a/slack_bolt/version.py
+++ b/slack_bolt/version.py
@@ -1,2 +1,2 @@
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
-__version__ = "1.17.1"
+__version__ = "1.17.2"