Skip to content

Commit

Permalink
Merge pull request #77 from idealista/70
Browse files Browse the repository at this point in the history
#70: AND should be OR condition
  • Loading branch information
Gkrlo committed May 22, 2018
2 parents aa033e2 + b88a9bc commit 054de4a
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 054de4a

Please sign in to comment.