http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11452
Revision: 11452 Author: amir Date: 2013-04-25 12:05:05 +0000 (Thu, 25 Apr 2013) Log Message: ----------- fixing bug #3611761 caused by r11440
Modified Paths: -------------- trunk/pywikipedia/weblinkchecker.py
Modified: trunk/pywikipedia/weblinkchecker.py =================================================================== --- trunk/pywikipedia/weblinkchecker.py 2013-04-25 09:12:54 UTC (rev 11451) +++ trunk/pywikipedia/weblinkchecker.py 2013-04-25 12:05:05 UTC (rev 11452) @@ -155,8 +155,10 @@ # Also remove text inside nowiki links etc. text = pywikibot.removeDisabledParts(text) for m in linkR.finditer(text): - yield m.group('url') - + if m.group('url'): + yield m.group('url') + else: + yield m.group('urlb') class InternetArchiveConsulter: def __init__(self, url): self.url = url
pywikipedia-svn@lists.wikimedia.org