Skip to content

Commit

Permalink
add check for none
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Nov 13, 2024
1 parent d39902e commit 48a25e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ml_tools/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def preprocess_segments(
)
continue
f = clip.get_frame(region.frame_number)
if region.blank or region.width <= 0 or region.height <= 0:
if region.blank or region.width <= 0 or region.height <= 0 or f is None:
continue

f.float_arrays()
Expand Down

0 comments on commit 48a25e3

Please sign in to comment.