From: Neil Date: Thu, 18 Apr 2013 12:06:46 +0000 (+0200) Subject: Remove debugging print. Standardise validation behaviour X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=736683f3d5a078b653d55e16f8267f566a38067f;p=erdslangetjie.git Remove debugging print. Standardise validation behaviour --- 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