{"action":"created","issue":{"url":"https://api.github.com/repos/david-caro/python-foreman/issues/67","repository_url":"https://api.github.com/repos/david-caro/python-foreman","labels_url":"https://api.github.com/repos/david-caro/python-foreman/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/david-caro/python-foreman/issues/67/comments","events_url":"https://api.github.com/repos/david-caro/python-foreman/issues/67/events","html_url":"https://github.com/david-caro/python-foreman/issues/67","id":142969915,"number":67,"title":"Unhandled TypeError exception on cache dir creation failure","user":{"login":"jcmcken","id":1117819,"avatar_url":"https://avatars.githubusercontent.com/u/1117819?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmcken","html_url":"https://github.com/jcmcken","followers_url":"https://api.github.com/users/jcmcken/followers","following_url":"https://api.github.com/users/jcmcken/following{/other_user}","gists_url":"https://api.github.com/users/jcmcken/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmcken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmcken/subscriptions","organizations_url":"https://api.github.com/users/jcmcken/orgs","repos_url":"https://api.github.com/users/jcmcken/repos","events_url":"https://api.github.com/users/jcmcken/events{/privacy}","received_events_url":"https://api.github.com/users/jcmcken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-23T14:11:43Z","updated_at":"2016-03-23T15:16:54Z","closed_at":null,"body":"[This line](https://github.com/david-caro/python-foreman/blob/656f6292ebdfb95d39b6867b2723237b65c74d63/foreman/client.py#L748) leads to an unhandled ``TypeError`` in [this line](https://github.com/david-caro/python-foreman/blob/656f6292ebdfb95d39b6867b2723237b65c74d63/foreman/client.py#L802) (``TypeError: 'NoneType' object is unsubscriptable``).\r\n\r\nPerhaps it should log an error instead, and continue to return the data (so the remote defs would be loaded every time, and not cached locally, but at least the client operation would potentially still succeed)?"},"comment":{"url":"https://api.github.com/repos/david-caro/python-foreman/issues/comments/200389728","html_url":"https://github.com/david-caro/python-foreman/issues/67#issuecomment-200389728","issue_url":"https://api.github.com/repos/david-caro/python-foreman/issues/67","id":200389728,"user":{"login":"david-caro","id":587148,"avatar_url":"https://avatars.githubusercontent.com/u/587148?v=3","gravatar_id":"","url":"https://api.github.com/users/david-caro","html_url":"https://github.com/david-caro","followers_url":"https://api.github.com/users/david-caro/followers","following_url":"https://api.github.com/users/david-caro/following{/other_user}","gists_url":"https://api.github.com/users/david-caro/gists{/gist_id}","starred_url":"https://api.github.com/users/david-caro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-caro/subscriptions","organizations_url":"https://api.github.com/users/david-caro/orgs","repos_url":"https://api.github.com/users/david-caro/repos","events_url":"https://api.github.com/users/david-caro/events{/privacy}","received_events_url":"https://api.github.com/users/david-caro/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T15:16:54Z","updated_at":"2016-03-23T15:16:54Z","body":"I think that the return you point out should return data instead of null yes"}}