mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +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: | ||||
|             try: | ||||
|                 validated = self.child.run_validation(item) | ||||
|             except ValidationError, exc: | ||||
|             except ValidationError as exc: | ||||
|                 errors.append(exc.detail) | ||||
|             else: | ||||
|                 ret.append(validated) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user