diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 94ba0539ac3d57..fbd4149d2ff821 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -314,7 +314,7 @@ def update_events(self, CS): for m in messaging.drain_sock(self.log_sock, wait_for_one=False): try: msg = m.androidLog.message - if any(err in msg for err in ["ERROR_CRC", "ERROR_ECC", "ERROR_STREAM_UNDERFLOW", "APPLY FAILED"]): + if any(err in msg for err in ("ERROR_CRC", "ERROR_ECC", "ERROR_STREAM_UNDERFLOW", "APPLY FAILED")): csid = msg.split("CSID:")[-1].split(" ")[0] if (evt := CSID_MAP.get(csid, None)) is not None: self.events.add(evt)