Problem: Backend crashed on startup due to evaluation import failure Solution: Wrap evaluation_helper import in try/except Changes: - Import evaluation_helper with error handling - Add EVALUATION_AVAILABLE flag - All evaluation calls now check flag before executing - System remains functional even if evaluation system unavailable This prevents backend crashes if: - Migrations haven't run yet - Dependencies are missing - Import errors occur Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| routers | ||
| apply_v9c_migration.py | ||
| auth.py | ||
| check_features.py | ||
| db_init.py | ||
| db.py | ||
| Dockerfile | ||
| evaluation_helper.py | ||
| feature_logger.py | ||
| main_old.py | ||
| main.py | ||
| migrate_to_postgres.py | ||
| models.py | ||
| profile_evaluator.py | ||
| requirements.txt | ||
| rule_engine.py | ||
| schema.sql | ||
| startup.sh | ||