Handle alternate exception

Apparently, some versions throw one exception, some another.  We really
don't care which, we just want an ID value
This commit is contained in:
Seth Hillbrand 2021-10-20 09:28:00 -07:00
parent b1f17dc927
commit 93b25b115b
1 changed files with 1 additions and 1 deletions

View File

@ -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()