|  | @@ -491,11 +491,10 @@ class ProductAttributesContainer(object):
 | 
		
	
		
			
			| 491 | 491 |                  if v.attribute.code == name:
 | 
		
	
		
			
			| 492 | 492 |                      result = v.value
 | 
		
	
		
			
			| 493 | 493 |              self.initialised = True
 | 
		
	
		
			
			| 494 |  | -            if result:
 | 
		
	
		
			
			| 495 |  | -                return result
 | 
		
	
		
			
			| 496 |  | -        raise AttributeError((_("%(obj)s has no attribute named " \
 | 
		
	
		
			
			| 497 |  | -                                "'%(attr)s'") % \
 | 
		
	
		
			
			| 498 |  | -                              {'obj': self.product.product_class, 'attr': name}))
 | 
		
	
		
			
			|  | 494 | +            return result
 | 
		
	
		
			
			|  | 495 | +        raise AttributeError(
 | 
		
	
		
			
			|  | 496 | +            _("%(obj)s has no attribute named '%(attr)s'") % {
 | 
		
	
		
			
			|  | 497 | +                'obj': self.product.product_class, 'attr': name})
 | 
		
	
		
			
			| 499 | 498 |  
 | 
		
	
		
			
			| 500 | 499 |      def validate_attributes(self):
 | 
		
	
		
			
			| 501 | 500 |          for attribute in self.get_all_attributes():
 |