https://bugzilla.wikimedia.org/show_bug.cgi?id=69039
Bug ID: 69039 Summary: welcome raises TypeError exception if site is not configured 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: ---
$ python pwb.py scripts/welcome.py -family:wikidata -lang:wikidata [NoAct] Betterknower has no contributions. [NoAct] PAC2 has no contributions. [Match] Arseny1992 has enough edits to be welcomed. 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/welcome.py", line 966, in <module> main() File "scripts/welcome.py", line 955, in main bot.run() File "scripts/welcome.py", line 750, in run % globalvar.defaultSign) TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' <type 'exceptions.TypeError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
The NoneType is welcome_text = i18n.translate(self.site, netext)