Merge pull request #2411 from simoncozens/fix-fix-contextual-overflow
This commit is contained in:
commit
19ab25d4ed
@ -389,14 +389,15 @@ class ChainContextualBuilder(LookupBuilder):
|
|||||||
candidates[1] = [self.buildFormat1Subtable(ruleset, chaining)]
|
candidates[1] = [self.buildFormat1Subtable(ruleset, chaining)]
|
||||||
|
|
||||||
for i in [1, 2, 3]:
|
for i in [1, 2, 3]:
|
||||||
try:
|
if candidates[i]:
|
||||||
self.getCompiledSize_(candidates[i])
|
try:
|
||||||
except Exception as e:
|
self.getCompiledSize_(candidates[i])
|
||||||
log.warning(
|
except Exception as e:
|
||||||
"Contextual format %i at %s overflowed (%s)"
|
log.warning(
|
||||||
% (i, str(self.location), e)
|
"Contextual format %i at %s overflowed (%s)"
|
||||||
)
|
% (i, str(self.location), e)
|
||||||
candidates[i] = None
|
)
|
||||||
|
candidates[i] = None
|
||||||
|
|
||||||
candidates = [x for x in candidates if x is not None]
|
candidates = [x for x in candidates if x is not None]
|
||||||
if not candidates:
|
if not candidates:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user