mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
pypy fix: KeyError instead of IndexError by missing group
This commit is contained in:
parent
e40a8c8ae8
commit
8893473d82
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue