Skip to content

Commit 2bc4c75

Browse files
committed
fixed typo that checked the list instead of the enumerated attachment for the AdaptiveCards Type
1 parent 27178df commit 2bc4c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webexteamssdk/api/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def create(self, roomId=None, toPersonId=None, toPersonEmail=None,
200200
for item, attachment in enumerate(attachments):
201201
check_type(attachment, (dict, AdaptiveCard))
202202

203-
if isinstance(attachments, AdaptiveCard):
203+
if isinstance(attachment, AdaptiveCard):
204204
attachments[item] = make_attachment(attachment)
205205

206206
post_data = dict_from_items_with_values(

0 commit comments

Comments
 (0)