mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-05 09:10:53 +00:00
Log, don't raise.
This commit is contained in:
parent
eb8837a4c8
commit
a46a7dc7f8
@ -157,8 +157,9 @@ class URIHandler(resource.Resource, object):
|
|||||||
try:
|
try:
|
||||||
node = self.client.create_node_from_uri(name)
|
node = self.client.create_node_from_uri(name)
|
||||||
return directory.make_handler_for(node, self.client)
|
return directory.make_handler_for(node, self.client)
|
||||||
except (TypeError, AssertionError):
|
except (TypeError, AssertionError) as e:
|
||||||
raise
|
log.msg(format="Failed to parse cap, perhaps due to bug: %(e)s",
|
||||||
|
e=e, level=log.WEIRD)
|
||||||
raise WebError(
|
raise WebError(
|
||||||
"'{}' is not a valid file- or directory- cap".format(name)
|
"'{}' is not a valid file- or directory- cap".format(name)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user