Return ErrorPage when web.operations raises an exception

This commit is contained in:
Sajith Sasidharan 2020-09-21 16:26:51 -04:00
parent 58c99d0c0c
commit e8f7643a8f
2 changed files with 2 additions and 0 deletions

0
newsfragments/3424.minor Normal file
View File

View File

@ -17,6 +17,7 @@ from allmydata.web.common import (
get_root,
get_arg,
boolean_of_arg,
exception_to_child,
)
MINUTE = 60
@ -95,6 +96,7 @@ class OphandleTable(resource.Resource, service.Service):
# https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3314
return url.URL.fromString(target)
@exception_to_child
def getChild(self, name, req):
ophandle = name
if ophandle not in self.handles: