From 1f1fe254a63a6ba2c28c4071b6b480aa9d5b631c Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Fri, 27 Dec 2013 12:59:37 +0000 Subject: [PATCH] DOC: document PyPy version that use KeyError instead of IndexError --- fail2ban/server/failregex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/server/failregex.py b/fail2ban/server/failregex.py index 60ea5cfd..ba176ceb 100644 --- a/fail2ban/server/failregex.py +++ b/fail2ban/server/failregex.py @@ -136,7 +136,7 @@ class Regex: if self._matchCache.group("skiplines%i" % n) is not None: skippedLines += self._matchCache.group("skiplines%i" % n) n += 1 - # KeyError is because of PyPy + # KeyError is because of PyPy issue1665 affecting pypy <= 2.2.1 except (IndexError, KeyError): break return skippedLines.splitlines(False)