From 7065bc094f25b7795842f762017db4214e44cf8d Mon Sep 17 00:00:00 2001 From: Felix Blanke <info@fblanke.de> Date: Mon, 3 Mar 2025 02:48:42 +0100 Subject: [PATCH] Add exception cause --- AKModel/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AKModel/forms.py b/AKModel/forms.py index 1e3c5aa..8295dd7 100644 --- a/AKModel/forms.py +++ b/AKModel/forms.py @@ -304,7 +304,7 @@ class JSONScheduleImportForm(AdminIntermediateForm): try: schedule = json.loads(data) except json.JSONDecodeError as ex: - raise ValidationError(_("Cannot decode as JSON"), "invalid") + raise ValidationError(_("Cannot decode as JSON"), "invalid") from ex for field in ["input", "scheduled_aks"]: if not field in schedule: raise ValidationError( -- GitLab