Skip to content

Commit f7190ca

Browse files
committed
PageAdmin.change_status() now catches all exceptions while publishing the page and returns them as a json-encoded string. Refers to Issue 1166
1 parent 0506425 commit f7190ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cms/admin/pageadmin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,8 @@ def change_status(self, request, page_id):
10691069
return admin_utils.render_admin_menu_item(request, page)
10701070
except ValidationError,e:
10711071
return HttpResponseServerError(json.dumps(e.messages))
1072+
except Exception,e:
1073+
return HttpResponseServerError(json.dumps(e.messages))
10721074
else:
10731075
return HttpResponseForbidden(unicode(_("You do not have permission to publish this page")))
10741076

0 commit comments

Comments
 (0)