Skip to content

Commit 6789939

Browse files
committed
Fix KeyError introduced in v1.1.0
1 parent 38fcbf3 commit 6789939

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ def index():
8585
# Print to debug
8686
# print("INDEX() function call")
8787

88-
page = session["current_page"]
89-
goto = session["current_goto"]
88+
try:
89+
page = session["current_page"]
90+
goto = session["current_goto"]
91+
except KeyError:
92+
page = None
93+
goto = "index"
9094

9195
# Print to debug
9296
# print("\nINDEX:")

0 commit comments

Comments
 (0)