mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
change order exception handlers
This commit is contained in:
parent
bb133522ef
commit
d5b471e420
|
@ -467,7 +467,7 @@ class Field:
|
|||
)
|
||||
)
|
||||
raise type(exc)(msg)
|
||||
except (KeyError, AttributeError) as exc:
|
||||
except (AttributeError, KeyError) as exc:
|
||||
if self.default is not empty:
|
||||
return self.get_default()
|
||||
if self.allow_null:
|
||||
|
|
Loading…
Reference in New Issue
Block a user