fix: pre-road audit (Phase 30) — upload-loop OSError, stats lock scope, server int guards

This commit is contained in:
Mathieu Moran
2026-08-15 22:25:17 -04:00
parent 386920b258
commit c6b1384b34
4 changed files with 62 additions and 4 deletions
+5 -1
View File
@@ -390,7 +390,11 @@ def _upload_loop():
time.sleep(CATCHUP_INTERVAL)
else:
time.sleep(UPLOAD_INTERVAL)
except (requests.RequestException, app_cellular.CellularError) as e:
except (
requests.RequestException,
app_cellular.CellularError,
OSError,
) as e:
_last_error = str(e)
print(f"Upload failed ({e}), retrying in {backoff}s")
time.sleep(backoff)