Skip to content

Commit b3a47cb

Browse files
committed
Updated docstring and error message
1 parent 0327795 commit b3a47cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def run(self):
4646
try:
4747
all_frames = stream_manager.get_frames()
4848
except MissingFrameError as e:
49-
"""catch missing frame, stop Thread and raise it again"""
49+
"""catch missing frame, stop Thread and save what can be saved"""
5050
print(*e.args, '\nShutting down DLStream and saving data...')
5151
stream_manager.finish_streaming()
5252
stream_manager.stop_cameras()

utils/generic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def get_frames(self) -> tuple:
8383
if ret:
8484
color_frames[self._camera_name] = image
8585
else:
86-
raise MissingFrameError('No frame was received from the camera.')
86+
raise MissingFrameError('No frame was received from the camera. Make sure that the camera is connected '
87+
'and that the camera source is set correctly.')
8788

8889
return color_frames, depth_maps, infra_frames
8990

0 commit comments

Comments
 (0)