fix: Fehlermeldung bei JSON-Load-Fehler verbessert

Co-authored-by: aider (ollama_chat/qwen3-coder:30b) <aider@aider.chat>
This commit is contained in:
jamulix 2025-10-21 15:12:31 +02:00
commit 7421f6fdec

1
app.py
View file

@ -33,6 +33,7 @@ def load_lessons():
lessons = FALLBACK_LESSONS
except json.JSONDecodeError as e:
print(f"Fehler beim Laden der JSON-Datei: {e}")
print(f"Position des Fehlers: Zeile {e.lineno}, Spalte {e.colno}")
print("Verwende Fallback-Lektionen")
lessons = FALLBACK_LESSONS
except Exception as e: