mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-10-23 12:50:57 +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…
Add table
Add a link
Reference in a new issue