diff --git a/fail2ban/server/failregex.py b/fail2ban/server/failregex.py index d343dbe0..12b8986a 100644 --- a/fail2ban/server/failregex.py +++ b/fail2ban/server/failregex.py @@ -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