mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-19 07:48:11 +00:00
add human-encodings of caps, refactor encodings of caps, tighten checks, fix unit tests to use values of the right size
This commit is contained in:
@ -128,7 +128,9 @@ class Client(node.Node, Referenceable, testutil.PollMixin):
|
||||
if os.path.exists(privdirfile):
|
||||
try:
|
||||
theuri = open(privdirfile, "r").read().strip()
|
||||
if not uri.is_string_newdirnode_rw(theuri):
|
||||
try:
|
||||
uri.NewDirectoryURI.init_from_human_encoding(theuri)
|
||||
except:
|
||||
raise EnvironmentError("not a well-formed mutable directory uri")
|
||||
except EnvironmentError, le:
|
||||
d = self.when_tub_ready()
|
||||
|
Reference in New Issue
Block a user