def test_noTracebackForYou(self):
        """
        If unable to obtain a traceback due to an exception, catch it and note
        the error.
        """
        # Invalid failure object doesn't implement .getTraceback()
        eventDict = dict(message=(), isError=1, failure=object())
        text = log.textFromEventDict(eventDict)
        self.assertIn("\n(unable to obtain traceback)", text)

        If unable to obtain a traceback due to an exception, catch it and note
        the error.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_log.py