Skip to content

Commit

Permalink
version 1.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Apr 18, 2023
1 parent 7bf508f commit 076efb5
Show file tree
Hide file tree
Showing 9 changed files with 227 additions and 149 deletions.
90 changes: 54 additions & 36 deletions docs/api-docs/slack_bolt/app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -539,15 +539,18 @@ <h1 class="title">Module <code>slack_bolt.app.app</code></h1>
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;no next() calls in middleware&#34;})
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
Expand Down Expand Up @@ -590,14 +593,17 @@ <h1 class="title">Module <code>slack_bolt.app.app</code></h1>
if resp is None:
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;unhandled request&#34;})
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:
Expand Down Expand Up @@ -1995,15 +2001,18 @@ <h2 id="args">Args</h2>
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;no next() calls in middleware&#34;})
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
Expand Down Expand Up @@ -2046,14 +2055,17 @@ <h2 id="args">Args</h2>
if resp is None:
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;unhandled request&#34;})
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:
Expand Down Expand Up @@ -3274,15 +3286,18 @@ <h2 id="returns">Returns</h2>
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;no next() calls in middleware&#34;})
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
Expand Down Expand Up @@ -3325,14 +3340,17 @@ <h2 id="returns">Returns</h2>
if resp is None:
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;unhandled request&#34;})
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:
Expand Down
90 changes: 54 additions & 36 deletions docs/api-docs/slack_bolt/app/async_app.html
Original file line number Diff line number Diff line change
Expand Up @@ -563,15 +563,18 @@ <h1 class="title">Module <code>slack_bolt.app.async_app</code></h1>
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;no next() calls in middleware&#34;})
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
Expand Down Expand Up @@ -617,14 +620,17 @@ <h1 class="title">Module <code>slack_bolt.app.async_app</code></h1>
if resp is None:
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;unhandled request&#34;})
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)

Expand Down Expand Up @@ -1915,15 +1921,18 @@ <h2 id="args">Args</h2>
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;no next() calls in middleware&#34;})
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
Expand Down Expand Up @@ -1969,14 +1978,17 @@ <h2 id="args">Args</h2>
if resp is None:
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;unhandled request&#34;})
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)

Expand Down Expand Up @@ -2952,15 +2964,18 @@ <h2 id="returns">Returns</h2>
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;no next() calls in middleware&#34;})
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
Expand Down Expand Up @@ -3006,14 +3021,17 @@ <h2 id="returns">Returns</h2>
if resp is None:
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;unhandled request&#34;})
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)

Expand Down
60 changes: 36 additions & 24 deletions docs/api-docs/slack_bolt/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,15 +588,18 @@ <h2 id="args">Args</h2>
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;no next() calls in middleware&#34;})
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
Expand Down Expand Up @@ -639,14 +642,17 @@ <h2 id="args">Args</h2>
if resp is None:
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;unhandled request&#34;})
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:
Expand Down Expand Up @@ -1867,15 +1873,18 @@ <h2 id="returns">Returns</h2>
# This should not be an intentional handling in usual use cases.
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;no next() calls in middleware&#34;})
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
Expand Down Expand Up @@ -1918,14 +1927,17 @@ <h2 id="returns">Returns</h2>
if resp is None:
resp = BoltResponse(status=404, body={&#34;error&#34;: &#34;unhandled request&#34;})
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:
Expand Down
Loading

0 comments on commit 076efb5

Please sign in to comment.