You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Additional except handling in DataClasses str
When Data Classes are constructed, they accept a raw_data object
which may not be compatible with all operations available in the
Data Class (such as JSON decoding non-JSON strings).
The DictWrapper._str_helper() method attempts to call all properties
and will encounter cases where properties are either not present,
or raise exceptions due to a mismatch in expectations of what the
data should be versus what is actually present.
Additional exception handling is needed to provide useful outputs
for debugging while also presenting which properties cause exceptions
when called.
If exceptions occur in the list iterator, then we ignore any
transformations and keep the item as-is, as transforming to
an exception message doesn't provide any context (as there is no
dictionary key bound to the item).
Practially this means the item will maintain it's class@address
output when printed.
0 commit comments