From aa7da22c57b03b019d046ddd5a1efd1b837751d2 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Apr 2013 14:13:23 +0200 Subject: [PATCH] Fix corner case crash --- erdslangetjie/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erdslangetjie/__main__.py b/erdslangetjie/__main__.py index 71ef53b..ebccae8 100644 --- a/erdslangetjie/__main__.py +++ b/erdslangetjie/__main__.py @@ -203,7 +203,8 @@ class GameWindow(RelativeLayout): def reset_level(self): Clock.unschedule(self.timed_move) self.timer_set = False - self.remove_widget(self.nemesis_tile) + if self.nemesis_tile: + self.remove_widget(self.nemesis_tile) self.nemesis.reset_pos() if self.level_obj: self.level_obj.load_tiles() -- 2.34.1