Last modified: 2013-12-17 10:49:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56684, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54684 - AttributeError: 'Page' object has no attribute '_isredir'
AttributeError: 'Page' object has no attribute '_isredir'
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: High major
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-27 10:30 UTC by xqt
Modified: 2013-12-17 10:49 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description xqt 2013-09-27 10:30:53 UTC
AttributeError: 'Page' object has no attribute '_isredir' occures but it never should occure after loadpageinfo method is executed:

WARNING: loadpageinfo: Query on [[ml:????????? ?????????]] returned data on '???
???? ?????'
Traceback (most recent call last):
  File "C:\pwb\core\pwb.py", line 103, in <module>
    run_python_file(fn, args)
  File "C:\pwb\core\pwb.py", line 49, in run_python_file
    exec compile(source, filename, "exec") in main_mod.__dict__
  File "C:\pwb\core\scripts\featured.py", line 672, in <module>
    main()
  File "C:\pwb\core\scripts\featured.py", line 665, in main
    bot.run()
  File "C:\pwb\core\scripts\featured.py", line 287, in run
    self.run_featured()
  File "C:\pwb\core\scripts\featured.py", line 350, in run_featured
    self.treat(code, task)
  File "C:\pwb\core\scripts\featured.py", line 359, in treat
    self.featuredWithInterwiki(fromsite, process)
  File "C:\pwb\core\scripts\featured.py", line 554, in featuredWithInterwiki
    atrans = self.findTranslated(a, tosite)
  File "C:\pwb\core\scripts\featured.py", line 472, in findTranslated
    if backpage.isRedirectPage():
  File "C:\pwb\core\pywikibot\page.py", line 445, in isRedirectPage
    return self.site.page_isredirect(self)
  File "C:\pwb\core\pywikibot\site.py", line 1364, in page_isredirect
    return page._isredir
AttributeError: 'Page' object has no attribute '_isredir'
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound m
ethod ConnectionPool.__del__ of {'https:yo.wikipedia.org': [<httplib2.python2.ht
tplib2.HTTPSConnectionWithTimeout instance at 0x000000003132D748>], 'https:lv.wi
...
b2.python2.httplib2.HTTPSConnectionWithTimeout instance at 0x000000000945DB08>],
 'https:simple.wikipedia.org': [<httplib2.python2.httplib2.HTTPSConnectionWithTi
meout instance at 0x000000002DD044C8>]}> ignored
Comment 1 Geoffrey Mon 2013-12-08 18:08:10 UTC
Hmmm I might be able to work this one out in my spare time...
Comment 2 Gerrit Notification Bot 2013-12-15 21:15:20 UTC
Change 101784 had a related patch set uploaded by Sn1per:
Fix bug 54684 by setting _isredir to false if it doesn't exist yet

https://gerrit.wikimedia.org/r/101784
Comment 3 Gerrit Notification Bot 2013-12-16 22:13:41 UTC
Change 101784 merged by jenkins-bot:
Fix bug 54684 by setting _isredir to false if it doesn't exist yet

https://gerrit.wikimedia.org/r/101784

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links