Merge pull request #816 from sajith/3427.return-error-page-from-unlinked

Return ErrorPage from unlinked

Fixes ticket:3427
This commit is contained in:
Sajith Sasidharan 2020-09-25 13:30:02 -04:00 committed by GitHub
commit 65f206e39b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

0
newsfragments/3427.minor Normal file
View File

View File

@ -20,6 +20,7 @@ from allmydata.web.common import (
WebError,
get_format,
get_mutable_type,
render_exception,
)
from allmydata.web import status
@ -83,6 +84,7 @@ class UploadResultsPage(Resource, object):
super(UploadResultsPage, self).__init__()
self._upload_results = upload_results
@render_exception
def render_POST(self, req):
elem = UploadResultsElement(self._upload_results)
return renderElement(req, elem)