Skip to content

Commit d715163

Browse files
committed
Fix Flake Lint Ambiguous Variable Error
1 parent c6524a3 commit d715163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elastalert/alerts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,9 @@ def alert(self, matches):
794794
except JIRAError as e:
795795
logging.exception("Error while commenting on ticket %s: %s" % (ticket, e))
796796
if self.labels:
797-
for l in self.labels:
797+
for label in self.labels:
798798
try:
799-
ticket.fields.labels.append(l)
799+
ticket.fields.labels.append(label)
800800
except JIRAError as e:
801801
logging.exception("Error while appending labels to ticket %s: %s" % (ticket, e))
802802
if self.transition:

0 commit comments

Comments
 (0)