From 65a40149d8055331dd31e76a60b54eab0c6567c4 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Fri, 17 Jan 2020 21:30:14 -0800 Subject: [PATCH] startup alert, handle case where param returns none --- selfdrive/car/car_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/car_helpers.py b/selfdrive/car/car_helpers.py index 104c46441..fad862920 100644 --- a/selfdrive/car/car_helpers.py +++ b/selfdrive/car/car_helpers.py @@ -10,8 +10,8 @@ from selfdrive.car import gen_empty_fingerprint def get_startup_alert(car_recognized, controller_available): alert = 'startup' - if Params().get("GitRemote").decode('utf-8') in ['git@github.com:commaai/openpilot.git', 'https://github.com/commaai/openpilot.git']: - if Params().get("GitBranch").decode('utf-8') not in ['devel', 'release2-staging', 'dashcam-staging', 'release2', 'dashcam']: + if Params().get("GitRemote", encoding="utf8") in ['git@github.com:commaai/openpilot.git', 'https://github.com/commaai/openpilot.git']: + if Params().get("GitBranch", encoding="utf8") not in ['devel', 'release2-staging', 'dashcam-staging', 'release2', 'dashcam']: alert = 'startupMaster' if not car_recognized: alert = 'startupNoCar'