Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Irber <luiz.irber@gmail.com>2008-04-13 17:29:16 (GMT)
committer Luiz Irber <luiz.irber@gmail.com>2008-04-13 17:29:16 (GMT)
commite996818f971da0e456659aba40c9c2b6ffc28107 (patch)
tree86628b0774b7d1640ca903777ff863151b3658ce
parent1ab063f42979fb8585d8ecfb78dbbd98e9a46958 (diff)
I forgot to return None when no name is available
-rw-r--r--Gambiarra/levels.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Gambiarra/levels.py b/Gambiarra/levels.py
index 5d34186..27449b0 100644
--- a/Gambiarra/levels.py
+++ b/Gambiarra/levels.py
@@ -199,6 +199,7 @@ def load_level(level, level_dir, level_name):
toadd[obj["name"]] = klass()
except KeyError, e:
print level_name, "-> Object name not available"
+ return None
goals = []
for goal in level["goals"]: