Closed alexfikl closed 3 years ago
The more I read the except TypeError
pattern, the more I am concerned about how unspecific it is. I agree with your idea of introducing a more specific
class NotAnArrayContainerError(TypeError): # or some such
pass
This'll also make all this code a bit more readable. Are you open to doing this as part of this PR?
This'll also make all this code a bit more readable. Are you open to doing this as part of this PR?
Completely agree. I'll make the changes.
LGTM, thanks!
Converts most of the
is_array_container_type
checks to usetry: serialize except: ...
instead, so that the various traversal functions do the same thing.Fixes #28