Skip to content

Commit

Permalink
#70: AND should be OR condition
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarlo committed May 22, 2018
1 parent aa033e2 commit b88a9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prom2teams/app/teams_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def post(teams_webhook_url, message):
response = session.post(teams_webhook_url, data=message)
if not response.ok and response.text is not '1':
if not response.ok or response.text is not '1':
exception_msg = 'Error performing request to: {}.' \
' Returned status code: {}.' \
' Returned data: {}'
Expand Down

0 comments on commit b88a9bc

Please sign in to comment.