diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-07-07 13:01:06 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-07-07 13:01:06 (GMT) |
commit | c8b608536ab28a28101a655e16992e0c3ea5eb36 (patch) | |
tree | caa77e822d0e881067ce8ae6ef1fa203fe45fa47 | |
parent | e4a64eca2c257da825c8379d225fa379555ffb85 (diff) |
remove debugging code
-rwxr-xr-x | visualmatch.py | 4 |
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): |