Fix a wmllint crash
This commit is contained in:
parent
c8e1f39da3
commit
19d9757ea9
1 changed files with 5 additions and 1 deletions
|
@ -1355,7 +1355,11 @@ def consistency_check():
|
|||
print '"%s", line %d: %s has no usage type' % \
|
||||
(filename, rl, rtype)
|
||||
continue
|
||||
utype = usage[base]
|
||||
if not base in usage:
|
||||
print '"%s", line %d: %s has unkown base %s' % \
|
||||
(filename, rl, rtype, base)
|
||||
else:
|
||||
utype = usage[base]
|
||||
utypes.append(utype)
|
||||
for (pdifficulty, (pl, recruit_pattern)) in patterndict.items():
|
||||
if condition_match(pdifficulty, rdifficulty):
|
||||
|
|
Loading…
Add table
Reference in a new issue