Skip to content

Commit

Permalink
Merge pull request rveachkc#136 from alextadams88/alexadams/issue135
Browse files Browse the repository at this point in the history
Dont check if the response text is simply '1' because it's sending a complex JSON payload
  • Loading branch information
rveachkc authored Oct 9, 2022
2 parents bdee707 + 0becf6b commit 4c1b4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymsteams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def send(self):
)
self.last_http_response = r

if r.status_code == requests.codes.ok and r.text == '1': # pylint: disable=no-member
if r.status_code == requests.codes.ok: # pylint: disable=no-member
return True
else:
raise TeamsWebhookException(r.text)
Expand Down

0 comments on commit 4c1b4c8

Please sign in to comment.