{"action":"closed","issue":{"url":"https://api.github.com/repos/quokkaproject/quokka/issues/284","labels_url":"https://api.github.com/repos/quokkaproject/quokka/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/quokkaproject/quokka/issues/284/comments","events_url":"https://api.github.com/repos/quokkaproject/quokka/issues/284/events","html_url":"https://github.com/quokkaproject/quokka/issues/284","id":99826305,"number":284,"title":"Why register a blueprint in case of conflic?","user":{"login":"rturk","id":2236950,"avatar_url":"https://avatars.githubusercontent.com/u/2236950?v=3","gravatar_id":"","url":"https://api.github.com/users/rturk","html_url":"https://github.com/rturk","followers_url":"https://api.github.com/users/rturk/followers","following_url":"https://api.github.com/users/rturk/following{/other_user}","gists_url":"https://api.github.com/users/rturk/gists{/gist_id}","starred_url":"https://api.github.com/users/rturk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rturk/subscriptions","organizations_url":"https://api.github.com/users/rturk/orgs","repos_url":"https://api.github.com/users/rturk/repos","events_url":"https://api.github.com/users/rturk/events{/privacy}","received_events_url":"https://api.github.com/users/rturk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/quokkaproject/quokka/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-08T18:43:05Z","updated_at":"2015-12-05T03:44:45Z","closed_at":"2015-12-05T03:44:45Z","body":"I'm having a hard time trying to understand why quokka/quokka/ext/blueprints.py will register a duplicated  Blueprint? This could be hell in case circular imports. \r\n\r\n    if blueprint.name not in app.blueprints:\r\n        app.register_blueprint(blueprint)\r\n    else:\r\n        blueprint.name += str(random.getrandbits(8))\r\n        app.register_blueprint(blueprint)\r\n        logger.warning(\"CONFLICT:%s already registered, using %s\",fname,blueprint.name)\r\n\r\nWhy the second register \"app.register_blueprint(blueprint)\" in the else block? Shouldn't be nothing since Blueprint is already registered?\r\n \r\n"}}