https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
Bug ID: 67276 Summary: edit conflict raises PageNotSaved exception instead of EditConflict 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: ---
Benutzer Diskussion:Bernd Schwabe in Hannover <<<
+ + {{ers:user:xqbot/LD-Hinweis|Harald Härke|angelegte}}
Comment: Bot: Benachrichtigung über Löschdiskussion zum Artikel [[Harald Härke]]
Traceback (most recent call last): File "C:\pwb\core\pwb.py", line 153, in <module> run_python_file(fn, argv, argvu) File "C:\pwb\core\pwb.py", line 67, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "C:\pwb\core\scripts\la.py", line 273, in <module> main() File "C:\pwb\core\scripts\la.py", line 265, in main bot.run() File "C:\pwb\core\scripts\la.py", line 96, in run self.treat(article) File "C:\pwb\core\scripts\la.py", line 156, in treat self.inform(user, page=page.title(), action=u'angelegte') File "C:\pwb\core\scripts\la.py", line 194, in inform if not self.save(text, talk, self.summary % param, minorEdit=False): File "C:\pwb\core\scripts\la.py", line 238, in save minorEdit=minorEdit, botflag=botflag) File "C:\pwb\core\pywikibot\page.py", line 964, in put **kwargs) File "C:\pwb\core\pywikibot__init__.py", line 423, in wrapper return method(*__args, **__kw) File "C:\pwb\core\pywikibot\page.py", line 885, in save **kwargs) File "C:\pwb\core\pywikibot\page.py", line 911, in _save raise pywikibot.PageNotSaved("%s: %s" % (link, err)) pywikibot.exceptions.PageNotSaved: [[Benutzer Diskussion:Bernd Schwabe in Hannover]]: editpage: Edit conflict detected; saving aborted. <class 'pywikibot.exceptions.PageNotSaved'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
The Problem is that try: ... except pywikibot.EditConflict does not hints the exceptions but it should do.
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- This is the bug I was aiming to fix with https://gerrit.wikimedia.org/r/141398
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 142901 had a related patch set uploaded by Xqt: (bug 67276) do not pass exceptions silently
https://gerrit.wikimedia.org/r/142901
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 142901 abandoned by Xqt: (bug 67276) do not pass exceptions silently
https://gerrit.wikimedia.org/r/142901
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g
--- Comment #4 from Ricordisamoa ricordisamoa@openmailbox.org --- Change 141398 had a related patch set uploaded by John Vandenberg: WIP: Page save related exception hierarchy
https://gerrit.wikimedia.org/r/141398
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
--- Comment #5 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 141398 had a related patch set uploaded by John Vandenberg: Page save related exception hierarchy
https://gerrit.wikimedia.org/r/141398
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
--- Comment #6 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 141398 merged by XZise: Page save related exception hierarchy
https://gerrit.wikimedia.org/r/141398
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org