summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-01-16 17:36:24 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2025-01-16 17:36:24 +0000
commitd2fade5a3d5ea24fdad37425ccb223d18d646c5d (patch)
tree7965cd0735221b41dde06adf66b77ac11b33ccd8 /core
parenteb22047c08a05613c70470f607c460827491528f (diff)
downloadtroggle-d2fade5a3d5ea24fdad37425ccb223d18d646c5d.tar.gz
troggle-d2fade5a3d5ea24fdad37425ccb223d18d646c5d.tar.bz2
troggle-d2fade5a3d5ea24fdad37425ccb223d18d646c5d.zip
making error handling mroe robust
Diffstat (limited to 'core')
-rw-r--r--core/views/caves.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/caves.py b/core/views/caves.py
index d5e0fe3..f4591d4 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -482,7 +482,7 @@ def edit_cave(request, path="", slug=None):
else:
print(f"{slug=}")
if not (cave:= get_cave_from_slug(slug)): # walrus operator
- return render(request, "errors/badslug.html", {"badslug": f"for cave {caveslug} - from edit_cave()"})
+ return render(request, "errors/badslug.html", {"badslug": f"for cave {slug} - from edit_cave()"})
editor = get_cookie(request)