(callable, *args, **kwargs)
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected