wiki: Correct error on content length error on wiki revise.

This commit is contained in:
Andre D
2012-10-09 10:47:21 -05:00
committed by Neil Williams
parent 237d445ced
commit f186cbac2a

View File

@@ -338,7 +338,7 @@ class WikiApiController(WikiController):
setattr(c.site, "prev_" + ATTRIBUTE_BY_PAGE[page.name] + "_id", page.revision)
c.site._commit()
except ContentLengthError as e:
self.handle_error(403, 'CONTENT_LENGTH_ERROR', e.max_length)
self.handle_error(403, 'CONTENT_LENGTH_ERROR', max_length=e.max_length)
return json.dumps({})
def pre(self):