Skip to content

Commit

Permalink
Fix Flake Lint Ambiguous Variable Error
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekjiitr committed May 26, 2020
1 parent c6524a3 commit d715163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elastalert/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,9 +794,9 @@ def alert(self, matches):
except JIRAError as e:
logging.exception("Error while commenting on ticket %s: %s" % (ticket, e))
if self.labels:
for l in self.labels:
for label in self.labels:
try:
ticket.fields.labels.append(l)
ticket.fields.labels.append(label)
except JIRAError as e:
logging.exception("Error while appending labels to ticket %s: %s" % (ticket, e))
if self.transition:
Expand Down

0 comments on commit d715163

Please sign in to comment.