Files
Sergei Miloserdov 6b3c8b65ef Improve error handling and reliability across backend and frontend
Enhanced backend (nodes.py, __init__.py):

Added robust error handling for loading resolutions.json and aspect_ratios.json with safe defaults.
Implemented per-file error handling when loading individual model configurations to prevent one failure from blocking others.
Added data structure validation for model files.
Introduced a comprehensive fallback data structure in __init__.py to ensure the node initializes and functions even if all data loading fails.

Strengthened frontend (js/optimal_resolution.js):

Added HTTP status check and data structure validation for the /optimal_resolution/models API response.
Implemented null/undefined checks (?.) and explicit validation for all widget lookups and critical data properties.
Made widget callbacks safer by verifying the original callback is a function before calling it.
Added a minimal fallback data structure in the fetch error handler to prevent UI crashes.
2026-05-16 00:55:16 +03:00
..