def callInThread(self, f, *a, **kw):
        """
        Call C{f(*a, **kw)} in this thread rather than scheduling it to be
        called in a thread.
        """
        try:
            f(*a, **kw)
        except:
            # callInThread doesn't let exceptions propagate to the caller.
            # None is always returned and any exception raised gets logged
            # later on.
            self._log.failure(
                "Callable passed to SynchronousThreadPool.callInThread failed"
            )

        Call C{f(*a, **kw)} in this thread rather than scheduling it to be
        called in a thread.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_wsgi.py