updated: handle execptions while setting params

old-commit-hash: c6d3306dbe
commatwo_master
Adeeb Shihadeh 3 years ago
parent 1d429f7e90
commit db8e512ee5
  1. 6
      selfdrive/updated.py

@ -459,7 +459,11 @@ def main():
exception = str(e)
overlay_init.unlink(missing_ok=True)
set_params(new_version, update_failed_count, exception)
try:
set_params(new_version, update_failed_count, exception)
except Exception:
cloudlog.exception("uncaught updated exception while setting params, shouldn't happen")
wait_helper.sleep(60)
dismount_overlay()

Loading…
Cancel
Save