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
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]
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