From 7151fef0ec410a611a6dd3f86ca9c9a882ac5be1 Mon Sep 17 00:00:00 2001 From: lovetox Date: Tue, 4 Oct 2016 22:25:44 +0200 Subject: [PATCH] Fix NoneType Error introduced in a10e0df42f31 --- src/gui_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui_interface.py b/src/gui_interface.py index ccbe0ee9a..ace6504dc 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -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':