mirror of https://github.com/fail2ban/fail2ban
pypy fix: KeyError instead of IndexError by missing group
parent
e40a8c8ae8
commit
8893473d82
|
@ -274,7 +274,7 @@ class FailRegex(Regex):
|
|||
for grp in groups:
|
||||
try:
|
||||
fid = self._matchCache.group(grp)
|
||||
except IndexError:
|
||||
except (IndexError, KeyError):
|
||||
continue
|
||||
if fid is not None:
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue