diff options
| author | Xavier Ordoquy | 2013-01-02 19:06:28 +0100 |
|---|---|---|
| committer | Xavier Ordoquy | 2013-01-02 19:06:28 +0100 |
| commit | c95fa81cb25fbdb7af3c8cc39cc45e49eff66c98 (patch) | |
| tree | d0cdc4fb7f343a4dde5b8336afa49fbb7587af97 /rest_framework | |
| parent | 9c7524fc33b52e4b119ba65ef9d84a58118dff43 (diff) | |
| download | django-rest-framework-c95fa81cb25fbdb7af3c8cc39cc45e49eff66c98.tar.bz2 | |
Use new exception style
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/serializers.py | 2 |
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 |
