mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 14:52:26 +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:
|
||||
node = self.client.create_node_from_uri(name)
|
||||
return directory.make_handler_for(node, self.client)
|
||||
except (TypeError, AssertionError):
|
||||
raise
|
||||
except (TypeError, AssertionError) as e:
|
||||
log.msg(format="Failed to parse cap, perhaps due to bug: %(e)s",
|
||||
e=e, level=log.WEIRD)
|
||||
raise WebError(
|
||||
"'{}' is not a valid file- or directory- cap".format(name)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user