Skip to content

Commit

Permalink
version 3.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Feb 19, 2022
1 parent 9d9a6e1 commit 53766ae
Show file tree
Hide file tree
Showing 9 changed files with 1,220 additions and 51 deletions.
6 changes: 3 additions & 3 deletions docs/api-docs/slack_sdk/models/blocks/block_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1
def __init__(
self,
*,
text: str,
text: Union[str, dict, PlainTextObject],
url: str,
action_id: Optional[str] = None,
style: Optional[str] = None,
Expand Down Expand Up @@ -3480,7 +3480,7 @@ <h3>Inherited members</h3>
</dd>
<dt id="slack_sdk.models.blocks.block_elements.LinkButtonElement"><code class="flex name class">
<span>class <span class="ident">LinkButtonElement</span></span>
<span>(</span><span>*, text: str, url: str, action_id: Optional[str] = None, style: Optional[str] = None, **others: dict)</span>
<span>(</span><span>*, text: Union[str, dict, <a title="slack_sdk.models.blocks.basic_components.PlainTextObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.PlainTextObject">PlainTextObject</a>], url: str, action_id: Optional[str] = None, style: Optional[str] = None, **others: dict)</span>
</code></dt>
<dd>
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
Expand Down Expand Up @@ -3521,7 +3521,7 @@ <h2 id="args">Args</h2>
def __init__(
self,
*,
text: str,
text: Union[str, dict, PlainTextObject],
url: str,
action_id: Optional[str] = None,
style: Optional[str] = None,
Expand Down
29 changes: 25 additions & 4 deletions docs/api-docs/slack_sdk/socket_mode/builtin/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ <h1 class="title">Module <code>slack_sdk.socket_mode.builtin.client</code></h1>
on_message_listener=self._on_message,
on_error_listener=self._on_error,
on_close_listener=self._on_close,
ssl_context=self.web_client.ssl,
)
current_session.connect()

Expand Down Expand Up @@ -279,10 +280,15 @@ <h1 class="title">Module <code>slack_sdk.socket_mode.builtin.client</code></h1>
listener(message)

def _on_error(self, error: Exception):
self.logger.exception(
error_message = (
f&#34;on_error invoked (session id: {self.session_id()}, &#34;
f&#34;error: {type(error).__name__}, message: {error})&#34;
)
if self.trace_enabled:
self.logger.exception(error_message)
else:
self.logger.error(error_message)

for listener in self.on_error_listeners:
listener(error)

Expand Down Expand Up @@ -313,10 +319,14 @@ <h1 class="title">Module <code>slack_sdk.socket_mode.builtin.client</code></h1>
f&#34; (session id: {session_id})&#34;
)
except Exception as e:
self.logger.exception(
error_message = (
&#34;Failed to start or stop the current session&#34;
f&#34; (session id: {session_id}, error: {e})&#34;
)
if self.trace_enabled:
self.logger.exception(error_message)
else:
self.logger.error(error_message)

def _monitor_current_session(self):
if self.current_app_monitor_started:
Expand Down Expand Up @@ -543,6 +553,7 @@ <h2 id="args">Args</h2>
on_message_listener=self._on_message,
on_error_listener=self._on_error,
on_close_listener=self._on_close,
ssl_context=self.web_client.ssl,
)
current_session.connect()

Expand Down Expand Up @@ -612,10 +623,15 @@ <h2 id="args">Args</h2>
listener(message)

def _on_error(self, error: Exception):
self.logger.exception(
error_message = (
f&#34;on_error invoked (session id: {self.session_id()}, &#34;
f&#34;error: {type(error).__name__}, message: {error})&#34;
)
if self.trace_enabled:
self.logger.exception(error_message)
else:
self.logger.error(error_message)

for listener in self.on_error_listeners:
listener(error)

Expand Down Expand Up @@ -646,10 +662,14 @@ <h2 id="args">Args</h2>
f&#34; (session id: {session_id})&#34;
)
except Exception as e:
self.logger.exception(
error_message = (
&#34;Failed to start or stop the current session&#34;
f&#34; (session id: {session_id}, error: {e})&#34;
)
if self.trace_enabled:
self.logger.exception(error_message)
else:
self.logger.error(error_message)

def _monitor_current_session(self):
if self.current_app_monitor_started:
Expand Down Expand Up @@ -816,6 +836,7 @@ <h3>Methods</h3>
on_message_listener=self._on_message,
on_error_listener=self._on_error,
on_close_listener=self._on_close,
ssl_context=self.web_client.ssl,
)
current_session.connect()

Expand Down

0 comments on commit 53766ae

Please sign in to comment.