Fix NoneType Error introduced in a10e0df42f31

This commit is contained in:
lovetox 2016-10-04 22:25:44 +02:00
parent 922762afa5
commit 7151fef0ec
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ class Interface:
def handle_event_gc_presence(self, obj): def handle_event_gc_presence(self, obj):
gc_control = obj.gc_control gc_control = obj.gc_control
parent_win = None parent_win = None
if gc_control.parent_win: if gc_control and gc_control.parent_win:
parent_win = gc_control.parent_win.window parent_win = gc_control.parent_win.window
if obj.ptype == 'error': if obj.ptype == 'error':
if obj.errcode == '503': if obj.errcode == '503':