Skip to content
Snippets Groups Projects
Commit 64ea5acc authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Merge branch 'tuffnatty-pagesavesuccessfix'

parents d46353ab d2f788fb
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,9 @@
* [2014-05-02] Quickfix for [#38](https://github.com/mwclient/mwclient/issues/38)
(by [@danmichaelo](https://github.com/danmichaelo))
[98b850b](https://github.com/mwclient/mwclient/commit/98b850b)
* [2014-06-13] Fix updating of Page.last_rev_time upon save(), [#41](https://github.com/mwclient/mwclient/issues/41)
(by [@tuffnatty](https://github.com/tuffnatty))
[d0cc7db](https://github.com/mwclient/mwclient/commit/d0cc7db)
## Changes in version 0.6.5
Mwclient 0.6.5 was released on 6 May 2011
......
......@@ -201,8 +201,8 @@ class Page(object):
else:
self.handle_edit_error(e, summary)
if result['edit'] == 'Success':
self.last_rev_time = client.parse_timestamp(result['newtimestamp'])
if result['edit'].get('result') == 'Success':
self.last_rev_time = client.parse_timestamp(result['edit'].get('newtimestamp'))
return result['edit']
def handle_edit_error(self, e, summary):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment