https://bugzilla.wikimedia.org/show_bug.cgi?id=68797
Bug ID: 68797 Summary: script_wui hardcoded to use User:DrTrigon Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
scripts/script_wui.py fails with horrible backtrace if not configured.
$ python pwb.py scripts/script_wui.py * Initialization of bot ** Redirecting Lua print in order to catch it ** Pre-loading all relevant page contents Traceback (most recent call last): File "pwb.py", line 157, 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/script_wui.py", line 292, in <module> main() File "scripts/script_wui.py", line 283, in main bot = ScriptWUIBot(site, chan, site.user() + "_WUI", "irc.wikimedia.org") File "scripts/script_wui.py", line 137, in __init__ self.refs[item].get(force=True) # load all page contents File "...pywikibot/__init__.py", line 432, in wrapper return method(*__args, **__kw) File "...pywikibot/__init__.py", line 432, in wrapper return method(*__args, **__kw) File "...pywikibot/page.py", line 315, in get self._getInternals(sysop) File "...pywikibot/page.py", line 339, in _getInternals self.site.loadrevisions(self, getText=True, sysop=sysop) File ".../pywikibot/site.py", line 2024, in loadrevisions raise NoPage(page) pywikibot.exceptions.NoPage: Page [[en:User:DrTrigon/DrTrigonBot/script wui-shell.css]] doesn't exist. <class 'pywikibot.exceptions.NoPage'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
https://bugzilla.wikimedia.org/show_bug.cgi?id=68797
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |69069
https://bugzilla.wikimedia.org/show_bug.cgi?id=68797
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Component|General |Other scripts
https://bugzilla.wikimedia.org/show_bug.cgi?id=68797
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |easy
pywikipedia-bugs@lists.wikimedia.org