Closed vinbarnes closed 2 months ago
This fixes KeyError 'data' errors.
KeyError 'data'
This switches access for the dict to use .get() and supplies a default value {} when the 'data' key is not present.
.get()
{}
Regarding the discussion of where errors should be handled, we determined that the client code using this library is responsible. We may revisit this at a later date depending on usage.
This fixes
KeyError 'data'
errors.This switches access for the dict to use
.get()
and supplies a default value{}
when the 'data' key is not present.