better error reporting on externX syntax errors

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@612 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2002-11-22 19:29:35 +00:00
parent 3f59c6b6d4
commit 1a2ae7ad63

View file

@ -536,7 +536,9 @@ class Configuration (UserDict.UserDict):
i=1
while 1:
tuple = cfgparser.get(section, "extern%d" % i).split()
if len(tuple)!=2: break
if len(tuple)!=2:
sys.stderr.write("extern%d: syntax error %s\n"%(i, tuple))
break
self["externlinks"].append(linkcheck.getLinkPat(tuple[0], strict=int(tuple[1])))
i += 1
except ConfigParser.Error, msg: debug(HURT_ME_PLENTY, msg)