{"action":"created","issue":{"url":"https://api.github.com/repos/pazz/urwidtrees/issues/14","labels_url":"https://api.github.com/repos/pazz/urwidtrees/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/pazz/urwidtrees/issues/14/comments","events_url":"https://api.github.com/repos/pazz/urwidtrees/issues/14/events","html_url":"https://github.com/pazz/urwidtrees/issues/14","id":90760324,"number":14,"title":"How to delete a node","user":{"login":"johanfforsberg","id":1274600,"avatar_url":"https://avatars.githubusercontent.com/u/1274600?v=3","gravatar_id":"","url":"https://api.github.com/users/johanfforsberg","html_url":"https://github.com/johanfforsberg","followers_url":"https://api.github.com/users/johanfforsberg/followers","following_url":"https://api.github.com/users/johanfforsberg/following{/other_user}","gists_url":"https://api.github.com/users/johanfforsberg/gists{/gist_id}","starred_url":"https://api.github.com/users/johanfforsberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanfforsberg/subscriptions","organizations_url":"https://api.github.com/users/johanfforsberg/orgs","repos_url":"https://api.github.com/users/johanfforsberg/repos","events_url":"https://api.github.com/users/johanfforsberg/events{/privacy}","received_events_url":"https://api.github.com/users/johanfforsberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-24T19:05:41Z","updated_at":"2015-07-22T19:01:00Z","closed_at":null,"body":"I'm attempting to dynamically remove nodes from a custom Tree. This gist contains a boiled down example of what I'm trying to do, but it does not work; the data is removed but the program exits with a \"TypeError: 'NoneType' object is not iterable\" exception. What am I doing wrong?\r\n\r\nhttps://gist.github.com/johanfforsberg/41d74b8c8abdcb62337c"},"comment":{"url":"https://api.github.com/repos/pazz/urwidtrees/issues/comments/123827973","html_url":"https://github.com/pazz/urwidtrees/issues/14#issuecomment-123827973","issue_url":"https://api.github.com/repos/pazz/urwidtrees/issues/14","id":123827973,"user":{"login":"johanfforsberg","id":1274600,"avatar_url":"https://avatars.githubusercontent.com/u/1274600?v=3","gravatar_id":"","url":"https://api.github.com/users/johanfforsberg","html_url":"https://github.com/johanfforsberg","followers_url":"https://api.github.com/users/johanfforsberg/followers","following_url":"https://api.github.com/users/johanfforsberg/following{/other_user}","gists_url":"https://api.github.com/users/johanfforsberg/gists{/gist_id}","starred_url":"https://api.github.com/users/johanfforsberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanfforsberg/subscriptions","organizations_url":"https://api.github.com/users/johanfforsberg/orgs","repos_url":"https://api.github.com/users/johanfforsberg/repos","events_url":"https://api.github.com/users/johanfforsberg/events{/privacy}","received_events_url":"https://api.github.com/users/johanfforsberg/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T19:01:00Z","updated_at":"2015-07-22T19:01:00Z","body":"I've had a look at this and while I can't tell whether there are bugs somewhere outside my code, I did manage to get my code working, pretty much, although I'm still unsure why... Have a look at the updated gist.\r\n\r\nI'm not quite happy with the behaviour yet, the focus should only jump to the parent if there are no siblings left."}}