diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-23 02:09:41 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-23 02:09:41 +0000 |
commit | 21f25d3fcde75d26be878d27575241d36e0c9401 (patch) | |
tree | d91b1c11b5f881b598fd6030d0ec685a7f2b3c45 /Lib/optparse.py | |
parent | dc61901dd2b1bcb5467ebc36ef35a51106d9b103 (diff) | |
download | cpython-git-21f25d3fcde75d26be878d27575241d36e0c9401.tar.gz |
raise a better error
Diffstat (limited to 'Lib/optparse.py')
-rw-r--r-- | Lib/optparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/optparse.py b/Lib/optparse.py index 02f62e4095..16a0f19845 100644 --- a/Lib/optparse.py +++ b/Lib/optparse.py @@ -799,7 +799,7 @@ class Option: parser.print_version() parser.exit() else: - raise RuntimeError, "unknown action %r" % self.action + raise ValueError("unknown action %r" % self.action) return 1 |