Page MenuHomePhabricator

editpage() got an unexpected keyword argument 'minorEdit'
Closed, InvalidPublic

Description

After directing the user in https://bugzilla.wikimedia.org/67488 to checkout an older revision (1cb5dad, as compared to 1af38dc840 current), the following exception occurred:

Logging in to mywiki:ar as UserBot
Traceback (most recent call last):

File "pwb.py", line 143, in <module>
  run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
  exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/pagefromfile.py", line 357, in <module>
  main()
File "scripts/pagefromfile.py", line 354, in main
  bot.run()
File "scripts/pagefromfile.py", line 164, in run
  self.save(title, contents)
File "scripts/pagefromfile.py", line 224, in save
  page.save(comment, minorEdit=self.getOption('minor'))
File "/Users/user/shell/core/pywikibot/page.py", line 883, in save
  **kwargs)
File "/Users/user/shell/core/pywikibot/page.py", line 893, in _save
  watch=watchval, bot=botflag, **kwargs)
File "/Users/user/shell/core/pywikibot/site.py", line 551, in callee
  return fn(self, *args, **kwargs)

TypeError: editpage() got an unexpected keyword argument 'minorEdit'
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

Checking out an even older version (af2ec1) solved the issue, so it was introduced somewhere inbetween (and maybe has been solved by now)


Version: core-(2.0)
Severity: normal

Details

Reference
bz67489

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:32 AM
bzimport set Reference to bz67489.
bzimport added a subscriber: Unknown Object (????).