@classmethod
    def create_from_json(cls, json_str):
        """
        :returns: HashData object init from str passed in
        :raises: ValueError if there's a problem with json
        """
        try:
            data = json.loads(json_str)
            return HashData(data['account'], data['container'], data['ttl'],
                            data['cdn_enabled'], data['logs_enabled'],
                            deleted=data.get('deleted', False))
        except (KeyError, ValueError, TypeError), e:
            raise ValueError((e, json_str) % "Problem loading json: %s: %r")
dataset/ETHPy150Open dpgoetz/sos/sos/origin.py/HashData.create_from_json/swapped operands of `%`