From af0b176f571f0a4f514a862a41b5d568a3077374 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Mon, 2 Jan 2023 13:06:20 -0500 Subject: [PATCH] Just catch any Python exception, we don't care what it is. Fixes https://gitlab.com/kicad/code/kicad/-/issues/13354 --- 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 091f14e712..d5837b0871 100644 --- a/scripting/python_scripting.cpp +++ b/scripting/python_scripting.cpp @@ -94,7 +94,7 @@ wx_version = "" try: from wx import version wx_version = version() -except (ImportError, ModuleNotFoundError): +except: pass )", pybind11::globals(), locals );