Mailing List Archive

[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [Bugfix] Fix invalid exception argument
Mat?j Suchánek has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/406072 )

Change subject: [Bugfix] Fix invalid exception argument
......................................................................

[Bugfix] Fix invalid exception argument

Change-Id: I0f4cebece8a5b654ab04089c01007ffc2c6819b8
---
M pywikibot/page.py
1 file changed, 1 insertion(+), 1 deletion(-)


git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/72/406072/1

diff --git a/pywikibot/page.py b/pywikibot/page.py
index 0ca875bc..12d847b 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -3592,7 +3592,7 @@
self._namespace = site.property_namespace
else:
raise ValueError('%r: Namespace "%d" is not valid'
- % self.site)
+ % (site, ns))

if 'entity_type' in kwargs:
entity_type = kwargs.pop('entity_type')

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f4cebece8a5b654ab04089c01007ffc2c6819b8
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mat?j Suchánek <matejsuchanek97@gmail.com>

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