SyntaxFix
Write A Post
Hire A Developer
Questions
inspect.stack() returns the current stack rather than the exception traceback:
inspect.stack()
import inspect print inspect.stack()
See https://gist.github.com/FredLoney/5454553 for a log_stack utility function.