Skip to content

Commit 0c16ec5

Browse files
committed
Merge branch 'master' of github.com:slackapi/python-slackclient
2 parents 0db0587 + dd1be4b commit 0c16ec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slackclient/slackrequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def do(self, token, request="?", post_data=None, domain="slack.com", timeout=Non
8888
if isinstance(post_data[field], list):
8989
post_data[field] = ",".join(post_data[field])
9090

91-
# Convert any params which aren't integer, string or bool to JSON
92-
# Example: `attachments` is a dict
91+
# Convert any params which are list-like to JSON strings
92+
# Example: `attachments` is a dict, and needs to be passed as JSON
9393
for k, v in six.iteritems(post_data):
9494
if isinstance(v, (list, dict)):
9595
post_data[k] = json.dumps(v)

0 commit comments

Comments
 (0)