From 4b4efead891e9863b0af9675eb0a1fa078964461 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 25 Oct 2021 10:24:30 -0700 Subject: [PATCH] count_events: handle missing logs --- selfdrive/debug/count_events.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/debug/count_events.py b/selfdrive/debug/count_events.py index da207b42b..8b32ce9d2 100755 --- a/selfdrive/debug/count_events.py +++ b/selfdrive/debug/count_events.py @@ -14,6 +14,8 @@ if __name__ == "__main__": cnt_events: Counter = Counter() for q in tqdm(r.qlog_paths()): + if q is None: + continue lr = list(LogReader(q)) for msg in lr: if msg.which() == 'carEvents':