mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-18 12:27:50 +02:00
On VM installs (e.g. Proxmox) the RaspiBlitz monitor scripts don't
populate keys like system_cpu_load / system_ram_mb / system_temp_celsius,
so redis returns empty strings. get_hardware_info did int('')/float('')
and raised ValueError, which killed the _handle_gather_hardware_info
background task ('Task exception was never retrieved') - hardware SSE
updates then stopped until restart.
- parse the hardware Redis values via _safe_int/_safe_float, returning
zero values instead of crashing (and guard the vram-percent division
by zero)
- wrap the gatherer loop body in try/except so a single failure can no
longer kill the task
Fixes #271
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| models | ||
| routers | ||
| __init__.py | ||
| test_app_manage_lock.py | ||
| test_apps_uninstall_keep_data.py | ||
| test_bitcoin_rpc_success.py | ||
| test_bitcoin_rpc_warmup.py | ||
| test_block_sub_error.py | ||
| test_change_password.py | ||
| test_channel_cleanup.py | ||
| test_cln_list_all_tx.py | ||
| test_cln_shell_safety.py | ||
| test_electrs_advanced_status.py | ||
| test_exec_bash_timeout.py | ||
| test_hardware_info_vm.py | ||
| test_hw_gatherer_resilience.py | ||
| test_jwt.py | ||
| test_native_python_errors.py | ||
| test_send_coins_input.py | ||
| test_sse_manager.py | ||
| test_warmup_events.py | ||
| utils.py | ||