diff --git a/linkcheck/UrlData.py b/linkcheck/UrlData.py index 9e3f4277..4d71dd2d 100644 --- a/linkcheck/UrlData.py +++ b/linkcheck/UrlData.py @@ -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()