Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F23355047
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
David_Hedlund
Jul 5 2018, 5:16 PM
2018-07-05 17:16:33 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
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.
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6100343
Default Alt Text
(1 KB)
Attached To
Mode
P7328 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment