mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-27 18:13:41 +08:00
fetch_image_from_route: fix missing f-string in error message (#38183)
This commit is contained in:
committed by
GitHub
parent
586dd4c611
commit
4cefe7239d
@@ -35,7 +35,7 @@ if segment >= len(segments):
|
||||
|
||||
fr = FrameReader(segments[segment])
|
||||
if frame >= fr.frame_count:
|
||||
raise Exception("frame {frame} not found, got {fr.frame_count} frames")
|
||||
raise Exception(f"frame {frame} not found, got {fr.frame_count} frames")
|
||||
|
||||
im = Image.fromarray(fr.get(frame))
|
||||
fn = f"uxxx_{route.replace('|', '_')}_{segment}_{frame}.png"
|
||||
|
||||
Reference in New Issue
Block a user