mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 07:57:55 +03:00 
			
		
		
		
	Fix exception style for py3
This commit is contained in:
		
							parent
							
								
									4482be46ae
								
							
						
					
					
						commit
						a919068c5d
					
				|  | @ -502,7 +502,7 @@ class ListSerializer(BaseSerializer): | ||||||
|         for item in data: |         for item in data: | ||||||
|             try: |             try: | ||||||
|                 validated = self.child.run_validation(item) |                 validated = self.child.run_validation(item) | ||||||
|             except ValidationError, exc: |             except ValidationError as exc: | ||||||
|                 errors.append(exc.detail) |                 errors.append(exc.detail) | ||||||
|             else: |             else: | ||||||
|                 ret.append(validated) |                 ret.append(validated) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user