mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 00:24:45 +00:00
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:
parent
3f59c6b6d4
commit
1a2ae7ad63
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue