Every once in a while I just need to get the stack trace of an exception as a string so that I can log the error in a separate system. Here is a quick way to do that:

Categories: BlogPython

Leave a Reply

Your email address will not be published. Required fields are marked *