Hi,

Got a KeyError in page.py, line 2067, lines 2066-67 go:

yield Page(self.site, contrib['title'], contrib['ns']), \
                  contrib['revid'], ts, contrib['comment']

In the case of a deleted edit comment, it appears that the dictionary
for each edit returned by site.usercontribs() doesn't contain said key
('comment'), resulting in a KeyError.  I've currently patched my local
copy to handle the problem, don't know if it's appropriate to handle
this in User.contributions(), Site.usercontribs(), or somewhere else.


Cheers,
Morten

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to