From 247c23904c4383a6c8a326ec2dc0d3e5f5710819 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 22 Feb 2009 17:34:01 -0700 Subject: [PATCH] misc/*: remove RuntimeError too --- misc/get-version.py | 2 +- misc/logtool.py | 2 +- misc/sizes.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.45.2