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:
parent
b1f17dc927
commit
93b25b115b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue