mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-11 10:00:58 +00:00
cleanup
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1257 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
bd628b7de7
commit
85115c2039
1 changed files with 3 additions and 2 deletions
|
|
@ -272,7 +272,7 @@ class UrlData (object):
|
|||
self.userinfo, host = splituser(self.urlparts[1])
|
||||
x, port = splitport(host)
|
||||
if port is not None and not is_valid_port(port):
|
||||
raise LinkCheckerError(i18n._("URL has invalid port number %s")\
|
||||
raise LinkCheckerError(i18n._("URL has invalid port number %r")\
|
||||
% str(port))
|
||||
# set host lowercase and without userinfo
|
||||
self.urlparts[1] = host.lower()
|
||||
|
|
@ -368,7 +368,8 @@ class UrlData (object):
|
|||
warningregex = self.config["warningregex"]
|
||||
if warningregex and self.valid:
|
||||
debug(BRING_IT_ON, "checking content")
|
||||
try: self.checkContent(warningregex)
|
||||
try:
|
||||
self.checkContent(warningregex)
|
||||
except tuple(ExcList):
|
||||
value, tb = sys.exc_info()[1:]
|
||||
debug(HURT_ME_PLENTY, "exception", traceback.format_tb(tb))
|
||||
|
|
|
|||
Loading…
Reference in a new issue