From d162c79373f0775e9a8a0cf347ee1a75f8086215 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 14 Dec 2021 16:06:00 +0100 Subject: [PATCH] flows: fix wrong exception being caught in flow inspector Signed-off-by: Jens Langhammer --- authentik/flows/views/inspector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/flows/views/inspector.py b/authentik/flows/views/inspector.py index e894dc0f9..6d3fa32a1 100644 --- a/authentik/flows/views/inspector.py +++ b/authentik/flows/views/inspector.py @@ -106,7 +106,7 @@ class FlowInspectorView(APIView): else: try: current_plan = request.session[SESSION_KEY_HISTORY][-1] - except KeyError: + except IndexError: return Response(status=400) is_completed = True current_serializer = FlowInspectorPlanSerializer(