mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
raise a better error
This commit is contained in:
parent
dc61901dd2
commit
21f25d3fcd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue