Skip to content

Commit d0eee37

Browse files
committed
mentionedPeople should be of type list not string_types
1 parent 3086ee0 commit d0eee37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ciscosparkapi/api/messages.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ def list(self, roomId, mentionedPeople=None, before=None,
161161
"""
162162
# Process args
163163
assert isinstance(roomId, string_types)
164-
assert mentionedPeople is None or \
165-
isinstance(mentionedPeople, string_types)
164+
assert mentionedPeople is None or isinstance(mentionedPeople, list)
166165
assert before is None or isinstance(before, string_types)
167166
assert beforeMessage is None or isinstance(beforeMessage, string_types)
168167
assert max is None or isinstance(max, int)

0 commit comments

Comments
 (0)