Occurrences of PyDeadObjectError replaced by RuntimeError

This commit is contained in:
David Hughes
2017-03-29 11:43:33 +01:00
parent 9b743cf383
commit 31385bf2db
3 changed files with 4 additions and 4 deletions

View File

@@ -222,7 +222,7 @@ class EventManager:
name = aWin.GetClassName()
i = id(aWin)
return '%s #%d' % (name, i)
except wx.PyDeadObjectError:
except RuntimeError:
return '(dead wx.Object)'