Commit 86fe69f
authored
updates '/' route to handle keyError (#21)
* updates '/' route to handle keyError
Right now, if you haven't used the application, the, if condition to check session["raw_profile"], throws a keyError as the session key doesn't exist yet. Setting it to a try with an except should handle this
* Update app.py1 parent 800f540 commit 86fe69f
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
0 commit comments