xonsh
xonsh copied to clipboard
Rewrited deprecated in `print_exception`
Fix for issue #5405
(But this issue doesn't fix https://github.com/xonsh/xonsh/issues/5408)
Hi @kulkarniniraj! Thank you for this! As I see in documentation sys.last_exc
was added in py 3.12. Is it possible to make this fix backward compatible?
@anki-code sure, I'll add a condition based on python version.
Thanks @kulkarniniraj !