Revision: 3943 Author: wikipedian Date: 2007-08-01 23:34:27 +0000 (Wed, 01 Aug 2007)
Log Message: ----------- report URLs with invalid character data, and those that are too long to be processed by the IDNA library
Modified Paths: -------------- trunk/pywikipedia/weblinkchecker.py
Modified: trunk/pywikipedia/weblinkchecker.py =================================================================== --- trunk/pywikipedia/weblinkchecker.py 2007-08-01 23:31:35 UTC (rev 3942) +++ trunk/pywikipedia/weblinkchecker.py 2007-08-01 23:34:27 UTC (rev 3943) @@ -308,6 +308,8 @@ """ try: wasRedirected = self.resolveRedirect(useHEAD = useHEAD) + except UnicodeError, arg: + return False, u'Encoding Error: %s' % arg except httplib.error, arg: return False, u'HTTP Error: %s' % arg except socket.error, arg:
pywikipedia-l@lists.wikimedia.org