(limit=None)
Like print_exc() but return a string.
Like print_exc() but return a string.
Like print_exc () but return a string .
def format_exc(limit=None):
    """Like print_exc() but return a string."""
    try:
        etype, value, tb = sys.exc_info()
        return ''.join(format_exception(etype, value, tb, limit))
    finally:
        etype = value = tb = None
def format_exc ( limit = None ) : try : etype , value , tb = sys . exc_info ( ) return '' . join ( format_exception ( etype , value , tb , limit ) ) finally : etype = value = tb = None