Page MenuHomePhabricator

TypeError in templatesWithParams
Closed, InvalidPublic


C:\pwb\SVN\core> xqbot/imagereview -check -total:1
Processing 1 images...
Retrieving 18 pages from wikipedia:de.
Traceback (most recent call last):
  File "C:\pwb\SVN\core\", line 256, in <module>
    if not main():
  File "C:\pwb\SVN\core\", line 250, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "C:\pwb\SVN\core\", line 121, in run_python_file
  File ".\scripts\xqbot\", line 932, in <module>
  File ".\scripts\xqbot\", line 927, in main
  File ".\scripts\xqbot\", line 755, in run
  File ".\scripts\xqbot\", line 722, in run_check
  File ".\scripts\xqbot\", line 627, in build_table
    for image in self.generator:
  File ".\scripts\xqbot\", line 358, in generator
  File ".\scripts\xqbot\", line 230, in __init__
    for t in self.templatesWithParams():
  File "C:\pwb\SVN\core\pywikibot\tools\", line 1370, in wrapper
    return obj(*__args, **__kw)
  File "C:\pwb\SVN\core\pywikibot\", line 2133, in templatesWithParams
    titles = list(t.title() for t in self.templates())
TypeError: 'list' object is not callable
<type 'exceptions.TypeError'>
CRITICAL: Closing network session.

Event Timeline

Xqt created this task.Apr 6 2016, 4:36 PM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptApr 6 2016, 4:36 PM
Xqt triaged this task as Unbreak Now! priority.Apr 6 2016, 4:40 PM
Xqt closed this task as Invalid.Apr 6 2016, 4:50 PM
jayvdb added a subscriber: jayvdb.Apr 10 2016, 10:52 PM

Im curious how this happened ... was this script changing Page.templates ?

Xqt added a comment.Apr 11 2016, 6:45 AM

Yes indeed. I was converting my last active script from compat to core and found some problems. You'll find a history on my xqbot repository. One of the problem was the templates method in core's Page we hadn't in compat before.