Skip to content

Commit 0db0587

Browse files
committed
Fixed JSON encoding
1 parent cce6528 commit 0db0587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slackclient/slackrequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def do(self, token, request="?", post_data=None, domain="slack.com", timeout=Non
9191
# Convert any params which aren't integer, string or bool to JSON
9292
# Example: `attachments` is a dict
9393
for k, v in six.iteritems(post_data):
94-
if not isinstance(v, (six.string_types, six.integer_types, bool)):
94+
if isinstance(v, (list, dict)):
9595
post_data[k] = json.dumps(v)
9696

9797
# Submit the request

0 commit comments

Comments
 (0)