MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / capture_errors

Method capture_errors

scenedetect/output/image.py:227–233  ·  view source on GitHub ↗
(callable, *args, **kwargs)

Source from the content-addressed store, hash-verified

225
226 def launch_thread(callable, *args, **kwargs):
227 def capture_errors(callable, *args, **kwargs):
228 try:
229 return callable(*args, **kwargs)
230 # Errors we capture in `error_queue` will be re-raised by this thread.
231 except: # noqa: E722
232 error_queue.put(sys.exc_info())
233 return None
234
235 thread = threading.Thread(
236 target=capture_errors,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected