Skip to content

Commit 18248d6

Browse files
committed
people.create() emails parameter should be list not string_types
The emails parameter of the people.create() method should be of type list (and len of 1) not of type string_types.
1 parent 8d0fc0e commit 18248d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ciscosparkapi/api/people.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def create(self, emails, **person_attributes):
220220
221221
"""
222222
# Process args
223-
assert isinstance(emails, string_types) and len(emails) == 1
223+
assert isinstance(emails, list) and len(emails) == 1
224224
post_data = {}
225225
post_data['emails'] = emails
226226
post_data.update(person_attributes)

0 commit comments

Comments
 (0)