Fix exception style for py3

This commit is contained in:
Tom Christie 2014-11-06 11:35:34 +00:00
parent 4482be46ae
commit a919068c5d

View File

@ -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)