Skip to content

Commit

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

Please sign in to comment.