Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-07-07 13:01:06 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-07-07 13:01:06 (GMT)
commitc8b608536ab28a28101a655e16992e0c3ea5eb36 (patch)
treecaa77e822d0e881067ce8ae6ef1fa203fe45fa47
parente4a64eca2c257da825c8379d225fa379555ffb85 (diff)
remove debugging code
-rwxr-xr-xvisualmatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/visualmatch.py b/visualmatch.py
index 95c0379..e32008a 100755
--- a/visualmatch.py
+++ b/visualmatch.py
@@ -175,7 +175,7 @@ class VisualMatchMain:
self.vmw.new_game()
def load_score(self):
- if 1==1:
+ try:
f = file(os.path.join(os.path.abspath('.'),
'visualmatch.score'), "r")
s = f.readlines()
@@ -183,7 +183,7 @@ class VisualMatchMain:
self.vmw.low_score = [int(s[0].split(':')[1].strip()),
int(s[1].split(':')[1].strip())]
print "low score is: %s" % (self.vmw.low_score)
- else:
+ except:
self.vmw.low_score = [-1, -1]
def save_score(self):