mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
Fixing lint issue
This commit is contained in:
parent
f4376fb683
commit
00e01891e9
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user