pypy fix: KeyError instead of IndexError by missing group

pull/1459/head
sebres 2016-06-10 11:47:24 +02:00
parent e40a8c8ae8
commit 8893473d82
1 changed files with 1 additions and 1 deletions

View File

@ -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