Skip to content

Commit b04c521

Browse files
committed
Make sure not to crash character editor during SSO init when char editor is opened
1 parent 526695f commit b04c521

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gui/characterEditor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,12 @@ def __init__(self, parent):
807807

808808
self.SetSizer(pmainSizer)
809809
self.Layout()
810-
self.ssoListChanged(None)
810+
try:
811+
self.ssoListChanged(None)
812+
except (KeyboardInterrupt, SystemExit):
813+
raise
814+
except:
815+
pass
811816

812817
def ssoCharChanged(self, event):
813818
sChar = Character.getInstance()

0 commit comments

Comments
 (0)