Lokal Profil has uploaded a new change for review.

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

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/heritage 
refs/changes/49/312249/1

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: newchange
Gerrit-Change-Id: Ia5e21edcc9b730734736e9812a4b30e989e51199
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/heritage
Gerrit-Branch: master
Gerrit-Owner: Lokal Profil <lokal.pro...@gmail.com>

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

Reply via email to