grpcio 1.0.0 changed the metadata type returned by AbortionError.initial_metadata to a tuple of key / value pairs, instead of a custom cython-backed type with .key and .value members.
So this just adds a try / except so we don't choke when converting the metadata to a dictionary.
grpcio 1.0.0 changed the metadata type returned by
AbortionError.initial_metadata
to a tuple of key / value pairs, instead of a custom cython-backed type with.key
and.value
members.So this just adds a try / except so we don't choke when converting the metadata to a dictionary.