change order exception handlers

This commit is contained in:
kuter 2020-11-25 21:55:44 +01:00
parent bb133522ef
commit d5b471e420

View File

@ -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: