diff --git a/server/vbv_lernwelt/importer/tests/Schulungen_Durchfuehrung_Trainer.xlsx b/server/vbv_lernwelt/importer/tests/Schulungen_Durchfuehrung_Trainer.xlsx index 3f2cb332..6239034c 100644 Binary files a/server/vbv_lernwelt/importer/tests/Schulungen_Durchfuehrung_Trainer.xlsx and b/server/vbv_lernwelt/importer/tests/Schulungen_Durchfuehrung_Trainer.xlsx differ diff --git a/server/vbv_lernwelt/importer/views.py b/server/vbv_lernwelt/importer/views.py index b8b212d6..c814fdab 100644 --- a/server/vbv_lernwelt/importer/views.py +++ b/server/vbv_lernwelt/importer/views.py @@ -1,3 +1,4 @@ +import traceback from typing import Callable from django.contrib import messages @@ -52,7 +53,12 @@ def handle_import(request, success_msg: str, importer: Callable[[str], None]): try: importer(excel_file) except Exception as e: - return render(request, "admin/importer/error.html", {"error": str(e)}) + return render( + # it is a "power" feature, so we will output the traceback on error + request, + "admin/importer/error.html", + {"error": traceback.format_exc()}, + ) messages.info(request, success_msg) return redirect("admin:index")