Commit a919068c by Tom Christie

Fix exception style for py3

parent 4482be46
...@@ -502,7 +502,7 @@ class ListSerializer(BaseSerializer): ...@@ -502,7 +502,7 @@ class ListSerializer(BaseSerializer):
for item in data: for item in data:
try: try:
validated = self.child.run_validation(item) validated = self.child.run_validation(item)
except ValidationError, exc: except ValidationError as exc:
errors.append(exc.detail) errors.append(exc.detail)
else: else:
ret.append(validated) 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