Meno25 created this task.
Meno25 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, alanajjar,
Aklapper.
TASK DESCRIPTION
**Steps to Reproduce: **
Run this welcome.py command on a wiki where there is a hidden username in the
username log (e.g. ar.wikiquote).
python pwb.py welcome.py -edit:0 -nlog -sul -limit:5000
**Expected Results:**
The bot should skip users whose usernames are hidden and continue working on
other users
**Actual Results:**
The bot crashes with //HiddenKeyError// (because the username of the account
with User ID 23292
<https://ar.wikiquote.org/wiki/%D8%AE%D8%A7%D8%B5:%D8%AA%D8%AD%D9%88%D9%8A%D9%84/user/23292>
was hidden) and you have to restart the bot run again.
Traceback (most recent call last):
File "pwb.py", line 250, in <module>
if not main():
File "pwb.py", line 243, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 95, in run_python_file
main_mod.__dict__)
File "./scripts/welcome.py", line 1027, in <module>
main()
File "./scripts/welcome.py", line 1010, in main
bot.run()
File "./scripts/welcome.py", line 774, in run
for users in self.parseNewUserLog():
File "./scripts/welcome.py", line 726, in parseNewUserLog
yield ue.page()
File
"/mnt/nfs/labstore-secondary-tools-home/meno25/core/pywikibot/logentries.py",
line 177, in page
self._page = pywikibot.User(self.site, self.data['title'])
File
"/mnt/nfs/labstore-secondary-tools-home/meno25/core/pywikibot/logentries.py",
line 38, in __missing__
'permission to view it.'.format(self._type, key))
pywikibot.exceptions.HiddenKeyError: Log entry (newusers) has a hidden
'title' key and you don't have permission to view it.
CRITICAL: Exiting due to uncaught exception <class
'pywikibot.exceptions.HiddenKeyError'>
TASK DETAIL
https://phabricator.wikimedia.org/T222094
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Meno25
Cc: Aklapper, alanajjar, Meno25, pywikibot-bugs-list, Viztor, DannyS712, Wenyi,
Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti,
Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs