Skip to content
Myr

Abort if the instance folder cannot be created (#5903)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by GitHub · parents 407eb76, 3d03098 · Browse files · 2 files+2 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−8 removed

  • other:+2 added−8 removed

2 files+2 added−8 removed

modified:docs/tutorial/factory.rst+1 added-4 removed
54 unmodified lines
55 # load the test config if passed in56 app.config.from_mapping(test_config)5758 # ensure the instance folder exists59 try:60 os.makedirs(app.instance_path)59 os.makedirs(app.instance_path, exist_ok=True)61 except OSError:62 pass6061 # a simple page that says hello62 @app.route('/hello')63 def hello():
96 unmodified lines
modified:examples/tutorial/flaskr/__init__.py+1 added-4 removed
19 unmodified lines
20 # load the test config if passed in21 app.config.update(test_config)2223 # ensure the instance folder exists24 try:25 os.makedirs(app.instance_path)24 os.makedirs(app.instance_path, exist_ok=True)26 except OSError:27 pass2526 @app.route("/hello")27 def hello():28 return "Hello, World!"
20 unmodified lines