Skip to content

Commit

Permalink
Bugfix: raise ValueError not return ValueError (#143)
Browse files Browse the repository at this point in the history
* CDL: minor doc typo fix

* Undoing some changes that got mixed in

* Update holistic.py: return ValueError-> raise ValueError
  • Loading branch information
cleong110 authored Jan 9, 2025
1 parent d92f464 commit 3995b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pose_format/utils/holistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def load_mediapipe_directory(directory: str, fps: int, width: int, height: int,
num_right_hand_points = first_frame["right_hand_landmarks"]["num_landmarks"]
additional_face_points = 10 if (num_face_points == 478 or num_face_points == 128) else 0
else:
return ValueError("No frames found in directory: {}".format(directory))
raise ValueError("No frames found in directory: {}".format(directory))

def load_mediapipe_frame(frame):
"""
Expand Down

0 comments on commit 3995b01

Please sign in to comment.