mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
misc/*: remove RuntimeError too
This commit is contained in:
parent
15ee186499
commit
247c23904c
@ -28,7 +28,7 @@ def get_version():
|
||||
if mo:
|
||||
verstr = mo.group(1)
|
||||
else:
|
||||
raise RuntimeError("if version.py exists, it must be well-formed")
|
||||
raise ValueError("if version.py exists, it must be well-formed")
|
||||
|
||||
return verstr
|
||||
|
||||
|
@ -31,7 +31,7 @@ class Options(usage.Options):
|
||||
fn = os.path.join(target, "logport.furl")
|
||||
self.target_furl = open(fn, "r").read().strip()
|
||||
else:
|
||||
raise RuntimeError("Can't use tail target: %s" % target)
|
||||
raise ValueError("Can't use tail target: %s" % target)
|
||||
elif mode == "dump":
|
||||
self.dumpfile = args[0]
|
||||
|
||||
|
@ -114,7 +114,7 @@ class Sizes:
|
||||
|
||||
|
||||
else:
|
||||
raise RuntimeError("unknown mode '%s" % mode)
|
||||
raise ValueError("unknown mode '%s" % mode)
|
||||
|
||||
self.storage_overhead = self.share_storage_overhead * num_shares
|
||||
self.storage_overhead_percentage = 100.0 * self.storage_overhead / file_size
|
||||
|
Loading…
x
Reference in New Issue
Block a user