{"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":2,"created_at":"2015-04-09T14:26:31Z","updated_at":"2015-05-27T18:46:43Z","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/106031139","html_url":"https://github.com/django/djangoproject.com/issues/446#issuecomment-106031139","issue_url":"https://api.github.com/repos/django/djangoproject.com/issues/446","id":106031139,"user":{"login":"claudep","id":143192,"avatar_url":"https://avatars.githubusercontent.com/u/143192?v=3","gravatar_id":"","url":"https://api.github.com/users/claudep","html_url":"https://github.com/claudep","followers_url":"https://api.github.com/users/claudep/followers","following_url":"https://api.github.com/users/claudep/following{/other_user}","gists_url":"https://api.github.com/users/claudep/gists{/gist_id}","starred_url":"https://api.github.com/users/claudep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudep/subscriptions","organizations_url":"https://api.github.com/users/claudep/orgs","repos_url":"https://api.github.com/users/claudep/repos","events_url":"https://api.github.com/users/claudep/events{/privacy}","received_events_url":"https://api.github.com/users/claudep/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T18:46:43Z","updated_at":"2015-05-27T18:46:43Z","body":"Yes, this is most probably a race condition where two threads are entering the `translation(language)` function with the same language. In 1.8 and up, this should be almost impossible, as the test of the language presence in `_translations` and adding the language in `_translations` happens in just two lines:\r\n```\r\n    if language not in _translations:\r\n        _translations[language] = DjangoTranslation(language)\r\n```\r\nWe could use a lock if this were still problematic."}}