mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 00:45:52 +00:00
Return ErrorPage when web.operations raises an exception
This commit is contained in:
parent
58c99d0c0c
commit
e8f7643a8f
0
newsfragments/3424.minor
Normal file
0
newsfragments/3424.minor
Normal 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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user