Skip to content
Snippets Groups Projects
Commit 7624f676 authored by Bryan Tong Minh's avatar Bryan Tong Minh
Browse files

Return the correct error

parent 4440ec81
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ class Page(object):
summary = summary, token = self.get_token('edit'),
**data)
if result['edit'].get('result').lower() == 'failure':
raise errors.EditError(self, result['edit']['result'])
raise errors.EditError(self, result['edit'])
except errors.APIError, e:
if e.code == 'editconflict':
raise errors.EditError(self, text, summary, e.info)
......
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