{"action":"created","issue":{"url":"https://api.github.com/repos/django/djangoproject.com/issues/446","labels_url":"https://api.github.com/repos/django/djangoproject.com/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/django/djangoproject.com/issues/446/comments","events_url":"https://api.github.com/repos/django/djangoproject.com/issues/446/events","html_url":"https://github.com/django/djangoproject.com/issues/446","id":67373993,"number":446,"title":"Error on requesting docs version with invalid language","user":{"login":"timgraham","id":411869,"avatar_url":"https://avatars.githubusercontent.com/u/411869?v=3","gravatar_id":"","url":"https://api.github.com/users/timgraham","html_url":"https://github.com/timgraham","followers_url":"https://api.github.com/users/timgraham/followers","following_url":"https://api.github.com/users/timgraham/following{/other_user}","gists_url":"https://api.github.com/users/timgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/timgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgraham/subscriptions","organizations_url":"https://api.github.com/users/timgraham/orgs","repos_url":"https://api.github.com/users/timgraham/repos","events_url":"https://api.github.com/users/timgraham/events{/privacy}","received_events_url":"https://api.github.com/users/timgraham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T14:26:31Z","updated_at":"2015-05-26T14:45:03Z","closed_at":null,"body":"Requested URL: https://docs.djangoproject.com/wp-admin/css/colors-classic.css/\r\n```\r\nAttributeError: 'NoneType' object has no attribute '_info'\r\n(1 additional frame(s) were not displayed)\r\n...\r\n  File \"docs/views.py\", line 56, in document\r\n    activate(lang)\r\n```"},"comment":{"url":"https://api.github.com/repos/django/djangoproject.com/issues/comments/105549412","html_url":"https://github.com/django/djangoproject.com/issues/446#issuecomment-105549412","issue_url":"https://api.github.com/repos/django/djangoproject.com/issues/446","id":105549412,"user":{"login":"timgraham","id":411869,"avatar_url":"https://avatars.githubusercontent.com/u/411869?v=3","gravatar_id":"","url":"https://api.github.com/users/timgraham","html_url":"https://github.com/timgraham","followers_url":"https://api.github.com/users/timgraham/followers","following_url":"https://api.github.com/users/timgraham/following{/other_user}","gists_url":"https://api.github.com/users/timgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/timgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgraham/subscriptions","organizations_url":"https://api.github.com/users/timgraham/orgs","repos_url":"https://api.github.com/users/timgraham/repos","events_url":"https://api.github.com/users/timgraham/events{/privacy}","received_events_url":"https://api.github.com/users/timgraham/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T14:45:03Z","updated_at":"2015-05-26T14:45:03Z","body":"Can't reproduce locally and not sure why sentry doesn't show the full traceback, but I guess the root cause might be here: https://github.com/django/django/blob/8bb369ef6345074216471c41bd575d540992c76e/django/utils/translation/trans_real.py#L172-L174\r\n\r\n`base_lang(lang)` is 'wp' so if `_translations` contains that and `res` is `None`, the next line would throw the exception. It seems this code has been refactored in 1.8, so this might be fixed there.\r\n\r\n@claudep care to take a look?"}}