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:
|
for grp in groups:
|
||||||
try:
|
try:
|
||||||
fid = self._matchCache.group(grp)
|
fid = self._matchCache.group(grp)
|
||||||
except IndexError:
|
except (IndexError, KeyError):
|
||||||
continue
|
continue
|
||||||
if fid is not None:
|
if fid is not None:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue