2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 00:37:09 +00:00

making error handling mroe robust

This commit is contained in:
2025-01-16 17:36:24 +00:00
parent eb22047c08
commit d2fade5a3d
2 changed files with 6 additions and 6 deletions

View File

@@ -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)