don't crash when we parse arguments in history manager. Fixes #8959
This commit is contained in:
		
							parent
							
								
									9de427f6fa
								
							
						
					
					
						commit
						504bfef7db
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -44,8 +44,8 @@ def parseOpts():
 | 
			
		|||
    config_path = None
 | 
			
		||||
 | 
			
		||||
    try:
 | 
			
		||||
        shortargs = 'hc:'
 | 
			
		||||
        longargs = 'help config-path='
 | 
			
		||||
        shortargs = 'hvc:l:p:'
 | 
			
		||||
        longargs = 'help verbose config-path= loglevel= profile='
 | 
			
		||||
        opts = getopt.getopt(sys.argv[1:], shortargs, longargs.split())[0]
 | 
			
		||||
    except getopt.error as msg:
 | 
			
		||||
        print(str(msg))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue