jenkins-bot has submitted this change and it was merged.

Change subject: Fix TypeError in call to get_categories_from_upper_categories()
......................................................................


Fix TypeError in call to get_categories_from_upper_categories()

TypeError: get_categories_from_upper_categories() takes exactly 2 arguments (1 
given)

Change-Id: Ia5e21edcc9b730734736e9812a4b30e989e51199
---
M erfgoedbot/categorize_images.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jean-Frédéric: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/erfgoedbot/categorize_images.py b/erfgoedbot/categorize_images.py
index 23a4725..692b83d 100644
--- a/erfgoedbot/categorize_images.py
+++ b/erfgoedbot/categorize_images.py
@@ -427,7 +427,7 @@
         except NoCommonsCatFromWikidataItemException:
             pass
     if not len(result):
-        result = get_categories_from_upper_categories(page)
+        result = get_categories_from_upper_categories(page, 
commonsCatTemplates)
 
     return result
 

-- 
To view, visit https://gerrit.wikimedia.org/r/312249
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia5e21edcc9b730734736e9812a4b30e989e51199
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/heritage
Gerrit-Branch: master
Gerrit-Owner: Lokal Profil <lokal.pro...@gmail.com>
Gerrit-Reviewer: Jean-Frédéric <jeanfrederic.w...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to