mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +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)
|
raise type(exc)(msg)
|
||||||
except (KeyError, AttributeError) as exc:
|
except (AttributeError, KeyError) as exc:
|
||||||
if self.default is not empty:
|
if self.default is not empty:
|
||||||
return self.get_default()
|
return self.get_default()
|
||||||
if self.allow_null:
|
if self.allow_null:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user