{"action":"closed","issue":{"url":"https://api.github.com/repos/learningequality/ka-lite/issues/4564","repository_url":"https://api.github.com/repos/learningequality/ka-lite","labels_url":"https://api.github.com/repos/learningequality/ka-lite/issues/4564/labels{/name}","comments_url":"https://api.github.com/repos/learningequality/ka-lite/issues/4564/comments","events_url":"https://api.github.com/repos/learningequality/ka-lite/issues/4564/events","html_url":"https://github.com/learningequality/ka-lite/issues/4564","id":109580403,"number":4564,"title":"Fail gracefully? Or give better output?","user":{"login":"MCGallaspy","id":8888020,"avatar_url":"https://avatars.githubusercontent.com/u/8888020?v=3","gravatar_id":"","url":"https://api.github.com/users/MCGallaspy","html_url":"https://github.com/MCGallaspy","followers_url":"https://api.github.com/users/MCGallaspy/followers","following_url":"https://api.github.com/users/MCGallaspy/following{/other_user}","gists_url":"https://api.github.com/users/MCGallaspy/gists{/gist_id}","starred_url":"https://api.github.com/users/MCGallaspy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MCGallaspy/subscriptions","organizations_url":"https://api.github.com/users/MCGallaspy/orgs","repos_url":"https://api.github.com/users/MCGallaspy/repos","events_url":"https://api.github.com/users/MCGallaspy/events{/privacy}","received_events_url":"https://api.github.com/users/MCGallaspy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/learningequality/ka-lite/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"rtibbles","id":1680573,"avatar_url":"https://avatars.githubusercontent.com/u/1680573?v=3","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"assignees":[{"login":"rtibbles","id":1680573,"avatar_url":"https://avatars.githubusercontent.com/u/1680573?v=3","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2015-10-02T22:07:43Z","updated_at":"2016-09-21T09:27:53Z","closed_at":"2016-09-21T09:27:53Z","body":"On `develop`.\r\nI didn't run the `init_content_items` management command, and so I keep getting this error:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"D:\\ka-lite\\python-packages\\django\\core\\management\\base.py\", line 224, in\r\n run_from_argv\r\n    self.execute(*args, **options.__dict__)\r\n  File \"D:\\ka-lite\\python-packages\\django\\core\\management\\base.py\", line 263, in\r\n execute\r\n    output = self.handle(*args, **options)\r\n  File \"D:\\ka-lite\\kalite\\distributed\\management\\commands\\setup.py\", line 491, i\r\nn handle\r\n    call_command(\"annotate_content_items\")\r\n  File \"D:\\ka-lite\\python-packages\\django\\core\\management\\__init__.py\", line 161\r\n, in call_command\r\n    return klass.execute(*args, **defaults)\r\n  File \"D:\\ka-lite\\python-packages\\django\\core\\management\\base.py\", line 263, in\r\n execute\r\n    output = self.handle(*args, **options)\r\n  File \"D:\\ka-lite\\kalite\\contentload\\management\\commands\\annotate_content_items\r\n.py\", line 51, in handle\r\n    annotate_content_models(database_path=database_path, channel=channel, langua\r\nge=language)\r\n  File \"D:\\ka-lite\\kalite\\topic_tools\\content_models.py\", line 103, in wrapper\r\n    output = function(*args, **kwargs)\r\n  File \"D:\\ka-lite\\kalite\\topic_tools\\content_models.py\", line 398, in annotate_\r\ncontent_models\r\n    content_models = get_content_items(ids=ids, channel=channel, language=langua\r\nge)\r\n  File \"D:\\ka-lite\\kalite\\topic_tools\\content_models.py\", line 129, in wrapper\r\n    output = map(unparse_model_data, output.dicts())\r\nTypeError: argument 2 to map() must support iteration\r\n```"}}
{"actor":{"display_login":"benjaoming"}}