[docs] [issue35790] Correct the description of sys.exc_info() and add a code example