http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9643
Revision: 9643 Author: xqt Date: 2011-10-22 10:16:01 +0000 (Sat, 22 Oct 2011) Log Message: ----------- Fix for KeyError bug #3426499; update from trunk r8701 which solves the same problem reported with bug #3097185
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2011-10-22 09:56:58 UTC (rev 9642) +++ branches/rewrite/pywikibot/page.py 2011-10-22 10:16:01 UTC (rev 9643) @@ -2084,7 +2084,7 @@ ts = pywikibot.Timestamp.fromISOformat(contrib['timestamp']) ts = int(ts.strftime("%Y%m%d%H%M%S")) yield Page(self.site, contrib['title'], contrib['ns']), \ - contrib['revid'], ts, contrib['comment'] + contrib['revid'], ts, contrib.get('comment', None)
@deprecate_arg("number", "total") def uploadedImages(self, total=10):
pywikipedia-svn@lists.wikimedia.org