diff --git a/scripting/kicad_pyshell/kicad_pyeditor.py b/scripting/kicad_pyshell/kicad_pyeditor.py index 0ab700ad49..b44488a27b 100644 --- a/scripting/kicad_pyshell/kicad_pyeditor.py +++ b/scripting/kicad_pyshell/kicad_pyeditor.py @@ -19,7 +19,7 @@ from wx import stc def KiNewId(): try: wx.NewIdRef - except NameError: + except ( NameError, AttributeError ): return wx.NewId() else: return wx.NewIdRef()