From 736683f3d5a078b653d55e16f8267f566a38067f Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Apr 2013 14:06:46 +0200 Subject: [PATCH] Remove debugging print. Standardise validation behaviour --- erdslangetjie/level.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erdslangetjie/level.py b/erdslangetjie/level.py index fd039f9..b5dbe13 100644 --- a/erdslangetjie/level.py +++ b/erdslangetjie/level.py @@ -179,7 +179,6 @@ class Level(object): self._data[pos[1]][pos[0]] except IndexError: return False - print pos, self._data[pos[1]][pos[0]] return True def blocked(self, pos): @@ -245,7 +244,7 @@ class LevelList(object): self.levels.append(Level(level_file)) level_file.close() else: - print 'Level list includes non-existant level %s' % line + raise RuntimeError('Level list includes non-existant level %s' % line) level_list.close() self._cur_level = 0 -- 2.34.1