From eb4220bd299d28b2c1745efdbd0ff4316e333dde Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@craftyjon.com>
Date: Fri, 10 Jan 2025 21:37:42 -0500
Subject: [PATCH] Use an exception formatting function that works in Python
 <3.10

---
 scripting/python_scripting.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripting/python_scripting.cpp b/scripting/python_scripting.cpp
index 7149728e6b..b36630c1cd 100644
--- a/scripting/python_scripting.cpp
+++ b/scripting/python_scripting.cpp
@@ -115,7 +115,7 @@ try:
     import wx.adv, wx.html, wx.richtext
 
 except Exception as e:
-    exception_output = "".join(traceback.format_exception(e))
+    exception_output = "".join(traceback.format_exc())
     )", pybind11::globals(), locals );
 
     const auto getLocal = [&]( const wxString& aName ) -> wxString