gh-102011: use sys.exception() instead of sys.exc_info() in docs where possible (#102012)

6 files changed