We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76f6e7f + 9b09f9a commit ddc3cb3Copy full SHA for ddc3cb3
1 file changed
src/foraging_gui/Foraging.py
@@ -1087,6 +1087,12 @@ def _check_drop_frames(self, save_tag=1):
1087
self.to_check_drop_frames = 0
1088
return
1089
1090
+ if not os.path.is_dir(video_folder):
1091
+ self.trigger_length=0
1092
+ self.to_check_drop_frames=0
1093
+ logging.warning('Hit unexpected edge case, no video folder, but video trigger file exists')
1094
+ return
1095
+
1096
# Inspect contents of video_folder to determine structure
1097
entries = os.listdir(video_folder)
1098
csv_files = [f for f in entries if f.endswith(".csv")]
0 commit comments