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

@@ -114,7 +114,7 @@ class AppEventHandlerMixin:
try:
if handler:
return handler(event)
except wx.PyDeadObjectError:
except RuntimeError:
self.RemoveHandlerForID(e_id)
else:
event.Skip()
@@ -128,7 +128,7 @@ class AppEventHandlerMixin:
try:
if handler:
return handler(event)
except wx.PyDeadObjectError:
except RuntimeError:
self.RemoveUIHandlerForID(e_id)
else:
event.Skip()