Browse Source

no extra var needed for iterator

pull/3330/head
Sergey G. Brester 2 years ago committed by GitHub
parent
commit
aceae84be2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      fail2ban/server/actions.py

3
fail2ban/server/actions.py

@ -305,8 +305,7 @@ class Actions(JailThread, Mapping):
"""
if actions is None:
actions = self._actions
revactions = reversed(actions.items())
for name, action in revactions:
for name, action in reversed(actions.items()):
try:
action.stop()
except Exception as e:

Loading…
Cancel
Save