Traceback (most recent call last): File "/data/project/heritage/pywikibot/pwb.py", line 263, in <module> if not main(): File "/data/project/heritage/pywikibot/pwb.py", line 257, in main run_python_file(filename, [filename] + args, argvu, file_package) File "/data/project/heritage/pywikibot/pwb.py", line 121, in run_python_file main_mod.__dict__) File "/data/project/heritage/erfgoedbot/missing_commonscat_links.py", line 259, in <module> main() File "/data/project/heritage/erfgoedbot/missing_commonscat_links.py", line 253, in main makeStatistics(mconfig, totals) File "/data/project/heritage/erfgoedbot/missing_commonscat_links.py", line 187, in makeStatistics totalCategories += totals.get((countrycode, lang)) TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
Description
Details
Related Objects
- Mentioned In
- T176722: Make missing_commonscat_links support sparql datasets
T176530: ErfgoedBot write-to-wiki crashes when hitting AbuseFilter (PageSaveRelatedError) - Mentioned Here
- rTHER6dba2531fcff: Move get_id_from_sort_key to common in preparation for re-use
rTHERf3552bc8606f: Add first tests for missing_commonscat_links
rTHER0eb8a6fe842a: Re-factor statistics bit of unused_monument_images
rTHER9cad0257c8a6: Make statistics table for unknown fields
rTHERac7ab3688bf7: Restructure missing_commonscat_links
T176722: Make missing_commonscat_links support sparql datasets
rTHER1a7b88cb5253: Respect `skip` config when making stats
rTHER150f545c4620: Catch `PageSaveRelatedError` in save_to_wiki_or_local
T176530: ErfgoedBot write-to-wiki crashes when hitting AbuseFilter (PageSaveRelatedError)
Event Timeline
Change 379971 had a related patch set uploaded (by Jean-Frédéric; owner: Jean-Frédéric):
[labs/tools/heritage@master] Respect skip config when making stats in missing_commonscat_links
This also happened on unused_images:
File "erfgoedbot/unused_monument_images.py", line 249, in <module> main() File "erfgoedbot/unused_monument_images.py", line 243, in main makeStatistics(mconfig, totals) File "erfgoedbot/unused_monument_images.py", line 177, in makeStatistics totalImages += totals.get((countrycode, lang)) TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
Change 379974 had a related patch set uploaded (by Jean-Frédéric; owner: Jean-Frédéric):
[labs/tools/heritage@master] Guard against empty totals when making statistics
Change 379971 merged by jenkins-bot:
[labs/tools/heritage@master] Respect skip config when making stats
Mentioned in SAL (#wikimedia-cloud) [2017-09-23T18:25:21Z] <JeanFred> Deploy latest from Git master: 1a7b88c (T176528), 150f545 (T176530)
Change 380060 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] [WIP]Restructure missing_commonscat_links Statistics
Change 379974 abandoned by Jean-Frédéric:
Guard against empty totals when making statistics
Reason:
Superseded
Change 447107 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] Move get_id_from_sort_key to common in preparation for re-use
Change 447108 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] Add first tests for missing_commonscat_links
Change 447109 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] Re-factor statistics bit of unused_monument_images
Change 447108 merged by jenkins-bot:
[labs/tools/heritage@master] Add first tests for missing_commonscat_links
Change 447109 merged by jenkins-bot:
[labs/tools/heritage@master] Re-factor statistics bit of unused_monument_images
Change 380060 merged by jenkins-bot:
[labs/tools/heritage@master] Restructure missing_commonscat_links
Check the logs to see if this is still happening.
Also check to ensure c:Commons:Monuments_database/Missing_commonscat_links/Statistics gets updated.