jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Fix retrieving namespace aliases

Change-Id: I7fafb4d4c2fd55bba58c5a12f486959a4fc8561a
---
M pywikibot/site/_apisite.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index df15811..c0e8d8e 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -988,7 +988,7 @@
namespace = Namespace(ns, canonical_name, custom_name, **nsdata)
_namespaces[ns] = namespace

- for item in self.siteinfo.get('namespacealiasesi'):
+ for item in self.siteinfo.get('namespacealiases'):
ns = int(item['id'])
try:
namespace = _namespaces[ns]

To view, visit change 772424. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I7fafb4d4c2fd55bba58c5a12f486959a4fc8561a
Gerrit-Change-Number: 772424
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-CC: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-MessageType: merged