From db8e512ee540f2642a38adf81851b92a186cbf24 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 10 Dec 2021 22:49:32 -0800 Subject: [PATCH] updated: handle execptions while setting params old-commit-hash: c6d3306dbe32a7f438c5422426d570316a697cba --- selfdrive/updated.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/selfdrive/updated.py b/selfdrive/updated.py index 0a203e3cd0..2acebf2a4e 100755 --- a/selfdrive/updated.py +++ b/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()