From 345ee188182ab79a3f73a29ab635d23f9861b253 Mon Sep 17 00:00:00 2001 From: Emil Ghitta Date: Tue, 3 Mar 2026 19:09:34 +0200 Subject: [PATCH] Fix 500 on default aaq topic selection --- kitsune/questions/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitsune/questions/views.py b/kitsune/questions/views.py index 96c4fe173e1..a6ae53b63e7 100644 --- a/kitsune/questions/views.py +++ b/kitsune/questions/views.py @@ -831,6 +831,8 @@ def aaq_step3(request, product_slug): request.headers.get("hx-trigger-name") == "category" ): topic_id = request.GET.get("category") + if not topic_id: + return HttpResponse(status=204) product = get_object_or_404(Product.active, slug=product_slug) topic = get_object_or_404(Topic.active.filter(products=product, in_aaq=True), pk=topic_id) response = HttpResponse(status=204)