Fix NoneType Error introduced in a10e0df42f31
This commit is contained in:
parent
922762afa5
commit
7151fef0ec
|
@ -295,7 +295,7 @@ class Interface:
|
|||
def handle_event_gc_presence(self, obj):
|
||||
gc_control = obj.gc_control
|
||||
parent_win = None
|
||||
if gc_control.parent_win:
|
||||
if gc_control and gc_control.parent_win:
|
||||
parent_win = gc_control.parent_win.window
|
||||
if obj.ptype == 'error':
|
||||
if obj.errcode == '503':
|
||||
|
|
Loading…
Reference in New Issue