Update serializers.py

This commit is contained in:
orf 2015-10-16 11:03:35 +01:00
parent 8b7acc2ab7
commit bd8d2a8b51

View File

@ -844,7 +844,7 @@ class ModelSerializer(Serializer):
try:
instance = ModelClass.objects.create(**validated_data)
except TypeError as exc:
except TypeError:
tb = traceback.format_exc()
msg = (
'Got a `TypeError` when calling `%s.objects.create()`. '