Revision: 5724 Author: nicdumz Date: 2008-07-17 12:01:31 +0000 (Thu, 17 Jul 2008)
Log Message: ----------- Catch InvalidTitle if raised on Page construction
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2008-07-17 12:00:29 UTC (rev 5723) +++ trunk/pywikipedia/interwiki.py 2008-07-17 12:01:31 UTC (rev 5724) @@ -1083,7 +1083,7 @@ for iw in re.finditer('<!-- *\[\[(.*?:.*?)\]\] *-->', page.get()): try: ignorepage = wikipedia.Page(page.site(), iw.groups()[0]) - except wikipedia.NoSuchSite: + except (wikipedia.NoSuchSite, wikipedia.InvalidTitle): continue
try: