https://bugzilla.wikimedia.org/show_bug.cgi?id=60381
Web browser: --- Bug ID: 60381 Summary: Return of the AttributeError: 'Page' object has no attribute '_isredir' Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: UNCONFIRMED Severity: major Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: geofbot@gmail.com Classification: Unclassified Mobile Platform: ---
We thought this was fixed, but alas...
local-sn1pebot@tools-login:~/core/pywikibot$ python Python 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import pywikibot site = pywikibot.getSite() page = pywikibot.Page(site) page.get("Cat")
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/project/sn1pebot/.local/lib/python2.7/site-packages/pywikibot/__init__.py", line 356, in wrapper return method(*__args, **__kw) File "/data/project/sn1pebot/.local/lib/python2.7/site-packages/pywikibot/__init__.py", line 356, in wrapper return method(*__args, **__kw) File "/data/project/sn1pebot/.local/lib/python2.7/site-packages/pywikibot/page.py", line 300, in get self._getInternals(sysop) File "/data/project/sn1pebot/.local/lib/python2.7/site-packages/pywikibot/page.py", line 330, in _getInternals if self._isredir: AttributeError: 'Page' object has no attribute '_isredir'