From: Brian Warner <warner@lothar.com>
Date: Mon, 23 Feb 2009 00:34:01 +0000 (-0700)
Subject: misc/*: remove RuntimeError too
X-Git-Tag: allmydata-tahoe-1.4.0~138
X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/module-simplejson.html?a=commitdiff_plain;h=247c23904c4383a6c8a326ec2dc0d3e5f5710819;p=tahoe-lafs%2Ftahoe-lafs.git

misc/*: remove RuntimeError too
---

diff --git a/misc/get-version.py b/misc/get-version.py
index a9a637a7..a3ef5d11 100644
--- a/misc/get-version.py
+++ b/misc/get-version.py
@@ -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
 
diff --git a/misc/logtool.py b/misc/logtool.py
index 16ec40e6..9f0beeb5 100644
--- a/misc/logtool.py
+++ b/misc/logtool.py
@@ -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]
 
diff --git a/misc/sizes.py b/misc/sizes.py
index b55d9491..d9c230a3 100644
--- a/misc/sizes.py
+++ b/misc/sizes.py
@@ -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