Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 2, 2025
1 parent 068f3be commit 295d477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/data/video_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_frame(self) -> Any:
cap = self._get_cap()
ret, frame = cap.read()
cap.release()
else:
else:
ret, frame = self._get_cap().read()
if not ret:
raise RuntimeError("Failed to read frame.")
Expand Down

0 comments on commit 295d477

Please sign in to comment.