$ python pwb.py nowcommons -lang:en -site:wikipedia -user:DvorapaBot -simulate Retrieving 2 pages from wikipedia:en. >>> File:Alaskan ADIZ.jpg <<< Traceback (most recent call last): File "pwb.py", line 298, in <module> if not main(): File "pwb.py", line 293, in main run_python_file(filename, [filename] + args, argvu, file_package) File "pwb.py", line 96, in run_python_file main_mod.__dict__) File "./scripts/nowcommons.py", line 408, in <module> main() File "./scripts/nowcommons.py", line 404, in main bot.run() File "./scripts/nowcommons.py", line 273, in run filenameOnCommons = self.findFilenameOnCommons(localImagePage) File "./scripts/nowcommons.py", line 243, in findFilenameOnCommons filenameOnCommons = par[par.index(':') + 1:] ValueError: substring not found CRITICAL: Exiting due to uncaught exception <class 'ValueError'>
Description
Description
Details
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
pywikibot/core | master | +2 -2 | [bugfix] use str.find instead of str.index within nowcommons.py |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T52344 Set up unit test running for pywikibot/core | |||
Resolved | jayvdb | T71068 split test suite into tests which depend on a server, and those that do not | |||
Invalid | None | T72936 Important tasks to be solved (tracking) | |||
Resolved | Xqt | T193968 Missing unittests for scripts (tracking) | |||
Resolved | Xqt | T71069 Scripts which are not properly tested by script_tests (tracking) | |||
Resolved | None | T95384 errors in script tests | |||
Resolved | BUG REPORT | Xqt | T223487 nowcommons.py throws an error on enwiki |
Event Timeline
Comment Actions
Change 588016 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] use str.find instead of str.index within nowcommons.py
Comment Actions
Change 588016 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] use str.find instead of str.index within nowcommons.py