mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-09 15:14:45 +00:00
better error msg
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1261 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
58057bd07f
commit
033a0873be
1 changed files with 3 additions and 3 deletions
|
|
@ -381,12 +381,12 @@ class UrlData (object):
|
|||
try:
|
||||
if self.allowsRecursion():
|
||||
self.parseUrl()
|
||||
# check content size
|
||||
self.checkSize()
|
||||
except tuple(ExcList):
|
||||
value, tb = sys.exc_info()[1:]
|
||||
debug(HURT_ME_PLENTY, "exception", traceback.format_tb(tb))
|
||||
self.setError(str(value))
|
||||
# check content size
|
||||
self.checkSize()
|
||||
self.setError(i18n._("could not parse content: %r")%str(value))
|
||||
# close
|
||||
self.closeConnection()
|
||||
self.logMe()
|
||||
|
|
|
|||
Loading…
Reference in a new issue