(self, exception)
| 866 | self.detachedFramesException[key] = (func_id, frameno, lineno) |
| 867 | |
| 868 | def logTracedException(self, exception): |
| 869 | exceptionType = str(type(exception).__name__) |
| 870 | message = str(exception) |
| 871 | traceback = exception.__traceback__.tb_next |
| 872 | functionName = None |
| 873 | if traceback and traceback.tb_frame.f_code.co_filename == 'main.py': |
| 874 | functionName = traceback.tb_frame.f_code.co_name |
| 875 | self.stack[-1].addExceptionResult(exceptionType, message, functionName) |
| 876 | |
| 877 | def logException(self, exception): |
| 878 | exceptionType = str(type(exception).__name__) |
no test coverage detected