mediachain / oldchain-client

[DEPRECATED] old mediachain client experiments
MIT License
4 stars 2 forks source link

fix crash when writing using grpcio 1.0.0 #100

Closed yusefnapora closed 8 years ago

yusefnapora commented 8 years ago

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.

yusefnapora commented 8 years ago

we probably eventually want to move to grpcio-tools 1.0.0, which adds a handy BuildPackageProtos command. But let's not fix what isn't broken