Commit c95fa81c by Xavier Ordoquy

Use new exception style

parent 9c7524fc
......@@ -526,7 +526,7 @@ class ModelSerializer(Serializer):
try:
instance.full_clean(exclude=self.get_validation_exclusions())
except ValidationError, err:
except ValidationError as err:
self._errors = err.message_dict
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment