Revision: 4541 Author: leogregianin Date: 2007-11-14 13:29:40 +0000 (Wed, 14 Nov 2007)
Log Message: ----------- Fixed bug [1824399] Crash while processing Indonesian Wikipedia
Modified Paths: -------------- trunk/pywikipedia/featured.py
Modified: trunk/pywikipedia/featured.py =================================================================== --- trunk/pywikipedia/featured.py 2007-11-14 11:39:34 UTC (rev 4540) +++ trunk/pywikipedia/featured.py 2007-11-14 13:29:40 UTC (rev 4541) @@ -243,7 +243,6 @@
pairs=[] for a in arts: - wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<"% a.title()) if a.title()<afterpage: continue if u"/" in a.title(): @@ -253,7 +252,7 @@ wikipedia.output(u"(cached) %s -> %s"%(a.title(), cc[a.title()])) continue if a.isRedirectPage(): - a=wikipedia.Page(a.site(),a.getRedirectTarget()) + a=a.getRedirectTarget() try: if not a.exists(): wikipedia.output(u"source page doesn't exist: %s" % a.title())