Last modified: 2014-09-03 21:09:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71039, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69039 - welcome raises TypeError exception if site is not configured
welcome raises TypeError exception if site is not configured
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: High major
: ---
Assigned To: Pywikipedia bugs
: easy
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-08-02 02:14 UTC by John Mark Vandenberg
Modified: 2014-09-03 21:09 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-08-02 02:14:47 UTC
$ 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)
Comment 1 Mpaa 2014-08-23 10:46:43 UTC
self.site is configured.
The bug is that netext has no entry for wikidata.
Comment 2 Mpaa 2014-08-23 11:06:41 UTC
I would change the description of the bug.
welcome.py should exit without error is site is not managed by the script.

I am not sure if wikidata is supposed to be managed (in this case entry needs to be added) or not.

anyone familiar with that site?
Comment 3 Gerrit Notification Bot 2014-09-02 21:36:26 UTC
Change 157983 had a related patch set uploaded by Mpaa:
Bug 69039 - welcome raises exception if site is not configured

https://gerrit.wikimedia.org/r/157983
Comment 4 Gerrit Notification Bot 2014-09-03 21:05:36 UTC
Change 157983 merged by jenkins-bot:
Bug 69039 - welcome raises exception if site is not configured

https://gerrit.wikimedia.org/r/157983

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links