Last modified: 2014-01-01 12:40:58 UTC
Hi there, I've recently migrated to Pywikipedia 2.0, and I sometimes got a PageNotSaved exception when attempting to do save page: * Saved the page ''pofienidors'': it doesn't exist (which is obvious as it is to be created!). In the traceback below, "put" method is called with some text, some summary and minorEdit set to False. File "C:\..\pywikibot\page.py", line 858, in put async=async, callback=callback, **kwargs) File "C:\..\pywikibot\page.py", line 781, in save **kwargs) File "C:\..\pywikibot\page.py", line 806, in _save raise pywikibot.PageNotSaved("%s: %s" %(link, err)) pywikibot.exceptions.PageNotSaved: [[poifienidors]]: Page [[mg:poifienidors]] doesn't exist. According to the code, callback and async are assumed to be set to None (their default value). Also note that these errors seem to appear randomly: on the same page, it may work... or not. Any explanations?
(In reply to comment #0) > Hi there, > I've recently migrated to Pywikipedia 2.0, and I sometimes got a PageNotSaved > exception when attempting to do save page: > * Saved the page ''pofienidors'': it doesn't exist (which is obvious as it is > to be created!). > > In the traceback below, "put" method is called with some text, some summary > and > minorEdit set to False. > > File "C:\..\pywikibot\page.py", line 858, in put > async=async, callback=callback, **kwargs) > File "C:\..\pywikibot\page.py", line 781, in save > **kwargs) > File "C:\..\pywikibot\page.py", line 806, in _save > raise pywikibot.PageNotSaved("%s: %s" %(link, err)) > pywikibot.exceptions.PageNotSaved: [[poifienidors]]: Page [[mg:poifienidors]] > doesn't exist. > > > According to the code, callback and async are assumed to be set to None > (their > default value). > > Also note that these errors seem to appear randomly: on the same page, it may > work... or not. > > Any explanations? Can you please post the relevant code?
This is not the current framework code. Could you please verify.