Pywikibot's "script_wui" should not be hardcoded to use a specific user page
Pywikibot's scripts/script_wui.py fails with a backtrace if not configured:
$ python pwb.py scripts/script_wui.py pywikibot.exceptions.NoPage: Page [[en:User:DrTrigon/DrTrigonBot/script wui-shell.css]] doesn't exist.
<class 'pywikibot.exceptions.NoPage'>When running the script, the username should be obtained from the logged-in user, not hardcoded, and a nicer error message should be shown if the page does not exist.
Important: You must communicate in https://phabricator.wikimedia.org/T70797 with your mentors, as not all mentors are registered on this GCI site so not all of your mentors would see your comments here on the GCI site.
Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information, and https://www.mediawiki.org/wiki/Manual:Pywikibot/PAWS for a short online interactive tutorial. Patches can be submitted via Gerrit (you need a MediaWiki.org account). More documentation on Gerrit can be found at https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task on this site please do use the task in Phabricator for communication instead of this site. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC).