mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +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 @@ def take_action(self, action, dest, opt, value, values, parser): | |||
|             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
	
	 Benjamin Peterson
						Benjamin Peterson