xonsh icon indicating copy to clipboard operation
xonsh copied to clipboard

Rewrited deprecated in `print_exception`

Open kulkarniniraj opened this issue 9 months ago • 2 comments

Fix for issue #5405

(But this issue doesn't fix https://github.com/xonsh/xonsh/issues/5408)

kulkarniniraj avatar May 12 '24 05:05 kulkarniniraj

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 avatar May 22 '24 14:05 anki-code

@anki-code sure, I'll add a condition based on python version.

kulkarniniraj avatar May 27 '24 13:05 kulkarniniraj

Thanks @kulkarniniraj !

anki-code avatar Jul 04 '24 08:07 anki-code