Page MenuHomePhabricator

AttributeError: 'Page' object has no attribute '_isredir'
Closed, ResolvedPublic


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\", line 103, in <module>
    run_python_file(fn, args)
  File "C:\pwb\core\", line 49, in run_python_file
    exec compile(source, filename, "exec") in main_mod.__dict__
  File "C:\pwb\core\scripts\", line 672, in <module>
  File "C:\pwb\core\scripts\", line 665, in main
  File "C:\pwb\core\scripts\", line 287, in run
  File "C:\pwb\core\scripts\", line 350, in run_featured
    self.treat(code, task)
  File "C:\pwb\core\scripts\", line 359, in treat
    self.featuredWithInterwiki(fromsite, process)
  File "C:\pwb\core\scripts\", line 554, in featuredWithInterwiki
    atrans = self.findTranslated(a, tosite)
  File "C:\pwb\core\scripts\", line 472, in findTranslated
    if backpage.isRedirectPage():
  File "C:\pwb\core\pywikibot\", line 445, in isRedirectPage
  File "C:\pwb\core\pywikibot\", 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 {'': [<
tplib2.HTTPSConnectionWithTimeout instance at 0x000000003132D748>], 'https:lv.wi
b2.python2.httplib2.HTTPSConnectionWithTimeout instance at 0x000000000945DB08>],
 '': [<httplib2.python2.httplib2.HTTPSConnectionWithTi
meout instance at 0x000000002DD044C8>]}> ignored

Version: core-(2.0)
Severity: major
See Also: T56868



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:20 AM
bzimport set Reference to bz54684.
bzimport added a subscriber: Unknown Object (????).

Hmmm I might be able to work this one out in my spare time...

Change 101784 had a related patch set uploaded by Sn1per:
Fix bug 54684 by setting _isredir to false if it doesn't exist yet

Change 101784 merged by jenkins-bot:
Fix bug 54684 by setting _isredir to false if it doesn't exist yet