You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
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.
if blueprint.name not in app.blueprints:
app.register_blueprint(blueprint)
else:
blueprint.name += str(random.getrandbits(8))
app.register_blueprint(blueprint)
logger.warning("CONFLICT:%s already registered, using %s",fname,blueprint.name)
Why the second register "app.register_blueprint(blueprint)" in the else block? Shouldn't be nothing since Blueprint is already registered?
The text was updated successfully, but these errors were encountered:
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.
Why the second register "app.register_blueprint(blueprint)" in the else block? Shouldn't be nothing since Blueprint is already registered?
The text was updated successfully, but these errors were encountered: