count_events: handle missing logs

pull/22689/head
Adeeb Shihadeh 4 years ago
parent 93d87cdc6f
commit 4b4efead89
  1. 2
      selfdrive/debug/count_events.py

@ -14,6 +14,8 @@ if __name__ == "__main__":
cnt_events: Counter = Counter() cnt_events: Counter = Counter()
for q in tqdm(r.qlog_paths()): for q in tqdm(r.qlog_paths()):
if q is None:
continue
lr = list(LogReader(q)) lr = list(LogReader(q))
for msg in lr: for msg in lr:
if msg.which() == 'carEvents': if msg.which() == 'carEvents':

Loading…
Cancel
Save