aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorXavier Ordoquy2013-01-02 19:06:28 +0100
committerXavier Ordoquy2013-01-02 19:06:28 +0100
commitc95fa81cb25fbdb7af3c8cc39cc45e49eff66c98 (patch)
treed0cdc4fb7f343a4dde5b8336afa49fbb7587af97 /rest_framework
parent9c7524fc33b52e4b119ba65ef9d84a58118dff43 (diff)
downloaddjango-rest-framework-c95fa81cb25fbdb7af3c8cc39cc45e49eff66c98.tar.bz2
Use new exception style
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/serializers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index 91fbe176..9f35f77c 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -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