From 794cfcf043f5e4527ad42f3930612d590f72af14 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Tue, 28 Apr 2020 15:13:45 -0700 Subject: [PATCH] Also catch ValueError from framereader --- tools/replay/unlog_segment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/replay/unlog_segment.py b/tools/replay/unlog_segment.py index e506639a5..88034d780 100755 --- a/tools/replay/unlog_segment.py +++ b/tools/replay/unlog_segment.py @@ -48,7 +48,7 @@ def replay(route, segment): img = fr.get(frame_idx[msg.frame.frameId], pix_fmt="rgb24") img = img[0][:, :, ::-1] # Convert RGB to BGR, which is what the camera outputs msg.frame.image = img.flatten().tobytes() - except KeyError: + except (KeyError, ValueError): pass if w not in socks: