Skip to content
Snippets Groups Projects
Commit a3ec8679 authored by Julian's avatar Julian
Browse files

Simplified instance folder creation

parent 4d6673fe
No related branches found
No related tags found
No related merge requests found
......@@ -61,11 +61,7 @@ def create_app(test_config=None): # pylint: disable=too-many-locals
register_template_helper(app)
setup_navbar(app)
# ensure the instance folder exists
try:
os.makedirs(app.instance_path)
except OSError:
pass
os.makedirs(app.instance_path, exist_ok=True)
db.init_app(app)
Migrate(app, db, render_as_batch=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment