Jean-Frédéric has uploaded a new change for review. https://gerrit.wikimedia.org/r/236352
Change subject: Fix bug introduced in 62a5fb38 ...................................................................... Fix bug introduced in 62a5fb38 The extracted method was not returning the categories... Change-Id: Ic9094cff08fd8af1cd8992bc960a3d1301a8c401 --- M erfgoedbot/categorize_images.py 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/labs/tools/heritage refs/changes/52/236352/1 diff --git a/erfgoedbot/categorize_images.py b/erfgoedbot/categorize_images.py index 69a78d4..26dd541 100644 --- a/erfgoedbot/categorize_images.py +++ b/erfgoedbot/categorize_images.py @@ -299,6 +299,7 @@ if monumentList.isRedirectPage(): monumentList = monumentList.getRedirectTarget() newcats = getCategories(monumentList, commonsCatTemplates) + return newcats def replace_default_cat_with_new_categories_in_image(page, commonsCategoryBase, newcats, comment): -- To view, visit https://gerrit.wikimedia.org/r/236352 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic9094cff08fd8af1cd8992bc960a3d1301a8c401 Gerrit-PatchSet: 1 Gerrit-Project: labs/tools/heritage Gerrit-Branch: master Gerrit-Owner: Jean-Frédéric <jeanfrederic.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits