wmllint: bugfix "unresolved scenario" check

This commit is contained in:
Groggy Dice 2013-08-15 18:08:08 -04:00
parent b999da8774
commit a315603d2c

View file

@ -932,7 +932,7 @@ def local_sanity_check(filename, nav, key, prefix, value, comment):
if parent in ("[allow_recruit]", "[disallow_recruit]") and key == "recruit":
print errlead + "recruit= should be type="
# Accumulate data to check for missing next scenarios
if parent == '[scenario] or parent == None':
if parent == '[scenario]' or parent == None:
if key == "next_scenario" and value != "null":
nextrefs.append((filename, nav.lineno, value))
if key == 'id':