Skip to content

Commit

Permalink
Dashboard: Fix send_notification
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Jun 29, 2019
1 parent 984dcfd commit 46974f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/dashboard/generate_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ def send_notification(report, last_ok, log, name, s):
if(idx_end == idx_last_ok): return # probably a flapping tester
emails = set([log[i]['author-email'] for i in range(idx_end, idx_last_ok)])
emails = [e for e in emails if "noreply" not in e]
if not emails:
return # no author emails found
if (not send_emails):
print("Email sending disabled, would otherwise send to: "+msg['To'])
return
Expand Down

0 comments on commit 46974f6

Please sign in to comment.