Skip to content

Commit fada5dc

Browse files
authored
Fix #1018 Add optional arguments in WebClient methods (#1099)
* Fix #1018 Add optional arguments in WebClient methods * Rename an internal method / update dict construction * Update some methods thanks to review feedback * Fix tests
1 parent d679144 commit fada5dc

File tree

12 files changed

+8200
-3788
lines changed

12 files changed

+8200
-3788
lines changed

slack_sdk/web/async_client.py

Lines changed: 2702 additions & 1259 deletions
Large diffs are not rendered by default.

slack_sdk/web/async_slack_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,5 @@ def validate(self):
204204
and (isinstance(self.data, bytes) or self.data.get("ok", False))
205205
):
206206
return self
207-
msg = "The request to the Slack API failed."
207+
msg = f"The request to the Slack API failed. (url: {self.api_url})"
208208
raise e.SlackApiError(message=msg, response=self)

0 commit comments

Comments
 (0)