MCPcopy Create free account
hub / github.com/SplootCode/splootcode / logTracedException

Method logTracedException

python/executor.py:868–875  ·  view source on GitHub ↗
(self, exception)

Source from the content-addressed store, hash-verified

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__)

Callers 1

__exit__Method · 0.80

Calls 1

addExceptionResultMethod · 0.80

Tested by

no test coverage detected