diff --git a/sloth/annotations/container.py b/sloth/annotations/container.py index e7e5676..da423f5 100644 --- a/sloth/annotations/container.py +++ b/sloth/annotations/container.py @@ -181,7 +181,10 @@ class AnnotationContainer: self._video_cache[fullpath] = vidsrc # get requested frame - vidsrc.getFrame(frame_number) + if not vidsrc.getFrame(frame_number): + LOG.warn("Frame %d could not be loaded from video source %s" % (frame_number, fullpath)) + return None + return vidsrc.getImage()