don't create None sub-option. Fixes #4379
This commit is contained in:
		
							parent
							
								
									b5b3740537
								
							
						
					
					
						commit
						e0a7fb8966
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -575,6 +575,8 @@ class Config:
 | 
			
		|||
		if not self.__options_per_key.has_key(optname):
 | 
			
		||||
#			raise RuntimeError, 'option %s does not exist' % optname
 | 
			
		||||
			return
 | 
			
		||||
		if not key:
 | 
			
		||||
			return
 | 
			
		||||
		dict = self.__options_per_key[optname][1]
 | 
			
		||||
		if not dict.has_key(key):
 | 
			
		||||
#			raise RuntimeError, '%s is not a key of %s' % (key, dict)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue