Also catch ValueError from framereader

pull/1435/head
Willem Melching 2020-04-28 15:13:45 -07:00
parent 8068fee939
commit 794cfcf043
1 changed files with 1 additions and 1 deletions

View File

@ -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: