fix: convert dict to list for iteration (#18963)
This commit is contained in:
		
							parent
							
								
									5f59c2ae75
								
							
						
					
					
						commit
						f43825e4dd
					
				| @ -71,7 +71,7 @@ def remove_empty(d): | ||||
| 		Helper function that removes all keys from a dictionary (d), | ||||
| 	that have an empty value. | ||||
| 	""" | ||||
| 	for key in d.keys(): | ||||
| 	for key in list(d): | ||||
| 		if not d[key]: | ||||
| 			del d[key] | ||||
| 	return d | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user