We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 407eb76 + 3d03098 commit 4e652d3Copy full SHA for 4e652d3
docs/tutorial/factory.rst
@@ -56,10 +56,7 @@ directory should be treated as a package.
56
app.config.from_mapping(test_config)
57
58
# ensure the instance folder exists
59
- try:
60
- os.makedirs(app.instance_path)
61
- except OSError:
62
- pass
+ os.makedirs(app.instance_path, exist_ok=True)
63
64
# a simple page that says hello
65
@app.route('/hello')
examples/tutorial/flaskr/__init__.py
@@ -21,10 +21,7 @@ def create_app(test_config=None):
21
app.config.update(test_config)
22
23
24
25
26
27
28
29
@app.route("/hello")
30
def hello():
0 commit comments