{"action":"closed","issue":{"url":"https://api.github.com/repos/basho/riak-python-client/issues/112","repository_url":"https://api.github.com/repos/basho/riak-python-client","labels_url":"https://api.github.com/repos/basho/riak-python-client/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/basho/riak-python-client/issues/112/comments","events_url":"https://api.github.com/repos/basho/riak-python-client/issues/112/events","html_url":"https://github.com/basho/riak-python-client/issues/112","id":3861642,"number":112,"title":"Error handling in python client [JIRA: CLIENTS-667]","user":{"login":"seancribbs","id":1772,"avatar_url":"https://avatars.githubusercontent.com/u/1772?v=3","gravatar_id":"","url":"https://api.github.com/users/seancribbs","html_url":"https://github.com/seancribbs","followers_url":"https://api.github.com/users/seancribbs/followers","following_url":"https://api.github.com/users/seancribbs/following{/other_user}","gists_url":"https://api.github.com/users/seancribbs/gists{/gist_id}","starred_url":"https://api.github.com/users/seancribbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seancribbs/subscriptions","organizations_url":"https://api.github.com/users/seancribbs/orgs","repos_url":"https://api.github.com/users/seancribbs/repos","events_url":"https://api.github.com/users/seancribbs/events{/privacy}","received_events_url":"https://api.github.com/users/seancribbs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/basho/riak-python-client/labels/JIRA:%20Closed","name":"JIRA: Closed","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"lukebakken","id":514926,"avatar_url":"https://avatars.githubusercontent.com/u/514926?v=3","gravatar_id":"","url":"https://api.github.com/users/lukebakken","html_url":"https://github.com/lukebakken","followers_url":"https://api.github.com/users/lukebakken/followers","following_url":"https://api.github.com/users/lukebakken/following{/other_user}","gists_url":"https://api.github.com/users/lukebakken/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebakken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebakken/subscriptions","organizations_url":"https://api.github.com/users/lukebakken/orgs","repos_url":"https://api.github.com/users/lukebakken/repos","events_url":"https://api.github.com/users/lukebakken/events{/privacy}","received_events_url":"https://api.github.com/users/lukebakken/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/basho/riak-python-client/milestones/4","html_url":"https://github.com/basho/riak-python-client/milestones/2.0.1","labels_url":"https://api.github.com/repos/basho/riak-python-client/milestones/4/labels","id":678035,"number":4,"title":"2.0.1","description":"Issues that can be addressed after Riak 2.0 final (Client 2.1.x)","creator":{"login":"seancribbs","id":1772,"avatar_url":"https://avatars.githubusercontent.com/u/1772?v=3","gravatar_id":"","url":"https://api.github.com/users/seancribbs","html_url":"https://github.com/seancribbs","followers_url":"https://api.github.com/users/seancribbs/followers","following_url":"https://api.github.com/users/seancribbs/following{/other_user}","gists_url":"https://api.github.com/users/seancribbs/gists{/gist_id}","starred_url":"https://api.github.com/users/seancribbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seancribbs/subscriptions","organizations_url":"https://api.github.com/users/seancribbs/orgs","repos_url":"https://api.github.com/users/seancribbs/repos","events_url":"https://api.github.com/users/seancribbs/events{/privacy}","received_events_url":"https://api.github.com/users/seancribbs/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":4,"state":"open","created_at":"2014-06-02T15:55:41Z","updated_at":"2016-02-04T16:33:48Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2012-03-28T19:34:49Z","updated_at":"2016-02-04T16:33:48Z","closed_at":"2016-02-04T16:33:48Z","body":"Moved from https://issues.basho.com/show_bug.cgi?id=385, reported by Mehmet Ali Akmanalp\r\n\r\nIt looks like it's hard to handle or even notice errors with the python client. Here's a prime example:\r\n\r\n```python\r\nimport riak\r\n\r\nc = riak.RiakClient(\"127.0.0.1\", 8087, transport_class=riak.RiakPbcTransport)\r\n\r\nb = c.bucket(\"\")\r\no = b.new(\"\")\r\no.set_data({\"foo\":1, \"bar\": 4})\r\no.store()\r\n```\r\n\r\nThis runs silently. No exceptions are thrown. I don't know what it did. I can't check any of the return values because they mostly return \"self\". There seems to be a RiakError but that's a more generic \"oh crap something went terribly wrong\" whereas the sort of granularity people would want (IMHO) is \"the database connection failed\" (which throws a socket.error by the way) or \"x does not exist\".\r\n\r\nThanks,\r\n~mali"}}