https://bugzilla.wikimedia.org/show_bug.cgi?id=66012
Bug ID: 66012 Summary: Error messages aren't printed Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: info@gno.de Web browser: --- Mobile Platform: ---
The argumet givent to pywikibot.exceptions exceptions aren't printed. Sample:
import pwb import pywikibot from pywikibot.exceptions import * raise Error('foo')
Traceback (most recent call last): File "<pyshell#3>", line 1, in <module> raise Error('foo') Error
raise Error('foo %s' %'bar')
Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> raise Error('foo %s' %'bar') Error
raise NoPage('Pagename')
Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> raise NoPage('Pagename') NoPage
https://bugzilla.wikimedia.org/show_bug.cgi?id=66012
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |High Severity|normal |major
https://bugzilla.wikimedia.org/show_bug.cgi?id=66012
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valhallasw@arctus.nl
--- Comment #1 from xqt info@gno.de --- Seems bug was introduced with https://gerrit.wikimedia.org/r/#/c/130021/
https://bugzilla.wikimedia.org/show_bug.cgi?id=66012
--- Comment #2 from xqt info@gno.de --- Reorder objects Error class is derived from seems to work:
class Error(Exception, UnicodeMixin): ...
import pwb import pywikibot from pywikibot.exceptions import * raise Error('foo')
Traceback (most recent call last): File "<pyshell#50>", line 1, in <module> raise Error('foo') Error: foo
https://bugzilla.wikimedia.org/show_bug.cgi?id=66012
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 136719 had a related patch set uploaded by Xqt: (bug 66012) Reorder inheritance of Error class
https://gerrit.wikimedia.org/r/136719
https://bugzilla.wikimedia.org/show_bug.cgi?id=66012
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=66012
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|Pywikipedia-bugs@lists.wiki |info@gno.de |media.org |
pywikipedia-bugs@lists.wikimedia.org