Revision: 6287 Author: russblau Date: 2009-01-23 14:58:03 +0000 (Fri, 23 Jan 2009)
Log Message: ----------- fix query-continue handling
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2009-01-23 14:34:27 UTC (rev 6286) +++ branches/rewrite/pywikibot/data/api.py 2009-01-23 14:58:03 UTC (rev 6287) @@ -407,8 +407,11 @@ if not "query-continue" in self.data: return if not self.continuekey in self.data["query-continue"]: - raise Error("Missing '%s' key in ['query-continue'] value." - % self.continuekey) + pywikibot.output( + u"Missing '%s' key in ['query-continue'] value." + % self.continuekey, + level=pywikibot.VERBOSE) + return update = self.data["query-continue"][self.continuekey] for key, value in update.iteritems(): # query-continue can return ints