{"action":"opened","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1157","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1157/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1157/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1157/events","html_url":"https://github.com/sphinx-doc/testing2/issues/1157","id":53294875,"number":1157,"title":"Building documentation raises AttributeError: 'NoneType' object has no attribute 'extend'","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-03T05:23:21Z","updated_at":"2015-01-03T05:23:21Z","closed_at":null,"body":"Some of our sphinx projects do not build on my Mac with the following exception:\n\n\n```\nException occurred:\n  File \"/usr/local/lib/python2.7/site-packages/sphinx/environment.py\", line 1046, in get_toctree_for\n    result.extend(toctree.children)\nAttributeError: 'NoneType' object has no attribute 'extend'\n```\n\nAttached is also the full log for this error.\n\nStrangely, some other project (probably a bit simpler) work without problems. However, all of the projects can be built on other computers. So there must be a specific issue with my configuration.\n\nThis is my local confiuguration:\n\n```\nlanguitar@ip-129-70-134-168:~/work/src/rst/rst-manual/build$ pip show sphinx\n---\nName: Sphinx\nVersion: 1.2b1\nLocation: /usr/local/lib/python2.7/site-packages\nRequires: Pygments, Jinja2, docutils\nlanguitar@ip-129-70-134-168:~/work/src/rst/rst-manual/build$ pip show Pygments\n---\nName: Pygments\nVersion: 1.6\nLocation: /usr/local/lib/python2.7/site-packages\nRequires:\nlanguitar@ip-129-70-134-168:~/work/src/rst/rst-manual/build$ pip show Jinja2\n---\nName: Jinja2\nVersion: 2.6\nLocation: /usr/local/lib/python2.7/site-packages\nRequires:\nlanguitar@ip-129-70-134-168:~/work/src/rst/rst-manual/build$ pip show docutils\n---\nName: docutils\nVersion: 0.10\nLocation: /usr/local/lib/python2.7/site-packages\nRequires:\n```\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1157\n- Originally reported by: [languitar](https://bitbucket.org/languitar)\n- Originally created at: 2013-04-30T15:00:54.102\n"}}