This repository has been archived on 2026-06-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Dienstplan/src
Claude b9d8e7094b
Add comprehensive error handling to Python and JavaScript files
This commit enhances error handling across the codebase with clear, user-friendly error messages:

Python Files:
- main.py: Added error handling for directory creation and file operations
- read_excel.py: Added error handling for file loading, JSON parsing, and data output
- fill_plan_dates.py: Added input validation and error handling for file operations and date calculations
- calculate.py: Improved error handling in load_holidays() and process_file() with detailed warnings for invalid data
- build_template.py: Added error handling for directory creation, workbook creation, and file saving

JavaScript Files:
- storage.js: Added comprehensive error handling for:
  - JSON parsing in getEmployees() and getAllDuties()
  - Type validation in save operations
  - Date conversion in getDutiesForMonth()
  - Data validation in saveDutiesForMonth()
  - Export/import operations

Benefits:
- Clear error messages in German for better user experience
- Graceful degradation when data is corrupted
- Type checking to prevent invalid data from being stored
- Row-level error reporting for Excel processing
- Invalid data filtering to prevent application crashes
2025-12-13 13:31:18 +00:00
..
add_test_data.py Vereinfachte Dienstplan-Version: Nur Datum & Mitarbeiter, Python-Berechnungen 2025-11-18 21:46:07 +00:00
build_template.py Add comprehensive error handling to Python and JavaScript files 2025-12-13 13:31:18 +00:00
build_template_simple.py Vereinfachte Dienstplan-Version: Nur Datum & Mitarbeiter, Python-Berechnungen 2025-11-18 21:46:07 +00:00
calculate.py Add comprehensive error handling to Python and JavaScript files 2025-12-13 13:31:18 +00:00
fill_and_test.py Vereinfachte Dienstplan-Version: Nur Datum & Mitarbeiter, Python-Berechnungen 2025-11-18 21:46:07 +00:00
fill_plan_dates.py Add comprehensive error handling to Python and JavaScript files 2025-12-13 13:31:18 +00:00
main.py Add comprehensive error handling to Python and JavaScript files 2025-12-13 13:31:18 +00:00
read_excel.py Add comprehensive error handling to Python and JavaScript files 2025-12-13 13:31:18 +00:00