Page MenuHomePhabricator
Paste P7328

(An Untitled Masterwork)
ActivePublic

Authored by David_Hedlund on Jul 5 2018, 5:16 PM.
Tags
None
Referenced Files
F23355047:
Jul 5 2018, 5:16 PM
Subscribers
None
Downloaded https://gerrit.wikimedia.org/r/cat/444011%2C2%2Cscripts/pagefromfile.py%5E0
Followed the instructions at https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/444011/
$ echo "Hello world" > Test.wiki
$ python pwb.py pagefromfile_new-84d9732400f6a787103fc805e1d573f0.py -summary:"The edit summary" -title:"Test" -file:"Test.wiki" -textonly
Reading 'Test.wiki'...
0 pages read
0 pages written
Execution time: 0 seconds
Script terminated by exception:
ERROR: AttributeError: 'tuple' object has no attribute 'site'
Traceback (most recent call last):
File "pwb.py", line 251, in <module>
if not main():
File "pwb.py", line 244, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 115, in run_python_file
main_mod.__dict__)
File "./scripts/pagefromfile_new-84d9732400f6a787103fc805e1d573f0.py", line 352, in <module>
main()
File "./scripts/pagefromfile_new-84d9732400f6a787103fc805e1d573f0.py", line 348, in main
bot.run()
File "/home/david/pywikibot-core-botpass/pywikibot/bot.py", line 1470, in run
if self.skip_page(page):
File "/home/david/pywikibot-core-botpass/pywikibot/bot.py", line 1626, in skip_page
if page.site != self.site:
AttributeError: 'tuple' object has no attribute 'site'
<type 'exceptions.AttributeError'>
CRITICAL: Closing network session.