Commit 0aaa07e
Return None for any missing BaseModel attribute
Accessing a missing attribute in BaseModel raises an AttributeError, but
as this happens quite frequently with objects that otherwise contain
valid data, it should not be enough to cause the API query to fail.
Instead, we can safely return None in place of a missing attribute.1 parent 45fb22b commit 0aaa07e
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 144 | + | |
148 | 145 | | |
149 | 146 | | |
150 | 147 | | |
| |||
0 commit comments