Commit 7fd8960
views: use .get() for THEME_FRONTPAGE to avoid hard dependency
* Switches from direct app.config["THEME_FRONTPAGE"] access to
app.config.get("THEME_FRONTPAGE") to prevent KeyErrors in
environments where the config is not set (e.g. alembic upgrades,
or test contexts)1 parent 25f18f8 commit 7fd8960
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments