Fixes #23643 -- Show exception chain in debug template for Py3k