jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Fix exception message in WikibasePage.get

Currently, it prints:

NotImplementedError: <class 'pywikibot.page.ItemPage'>.get does not ...

or similar. Just ItemPage.get is enought and nicer.

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

diff --git a/pywikibot/page.py b/pywikibot/page.py
index f93dbd9..59964df 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -3949,7 +3949,7 @@
if args or kwargs:
raise NotImplementedError(
'{0}.get does not implement var args: {1!r} and {2!r}'.format(
- self.__class__, args, kwargs))
+ self.__class__.__name__, args, kwargs))

lazy_loading_id = not hasattr(self, 'id') and hasattr(self, '_site')
if force or not hasattr(self, '_content'):

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I516ace3da8c1b24ab02cf6e10f7d306aa5ed18e7
Gerrit-Change-Number: 522946
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)