Commit a919068c by Tom Christie

Fix exception style for py3

parent 4482be46
......@@ -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)
......
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