Skip to content

Commit 182255d

Browse files
committed
Descriptive error on pathless REDIRECT_PATH
1 parent 692f72d commit 182255d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
app = Flask(__name__)
1010
app.config.from_object(app_config)
11+
assert app.config["REDIRECT_PATH"] != "/", "REDIRECT_PATH must not be /"
1112
Session(app)
1213

1314
# This section is needed for url_for("foo", _external=True) to automatically

0 commit comments

Comments
 (0)