basho/riak-python-client — pull request #105 by armon (2012-02-15 00:48:20+00:00)
Title: Fix RiakObject.get_content_type() when content type not yet set.

This method currently raises a KeyError instead of appropriately returning the default content types.

As an example:

import riak
cl = riak.RiakClient()
b = cl.bucket("test")
obj = riak.RiakObject(cl, b, "foo")
obj.set_encoded_data('{"a": 1}')

This will currently fail, but will work with the patch.