Fixing lint issue

This commit is contained in:
Kirill Gagarski 2019-12-14 01:26:11 +03:00
parent f4376fb683
commit 00e01891e9

View File

@ -1462,7 +1462,7 @@ class ChoiceField(Field):
try:
return self.choice_reprs_to_values[self._choices_key(data)]
except (KeyError, TypeError) as e:
except (KeyError, TypeError):
self.fail('invalid_choice', input=data)
def to_representation(self, value):