From c8b608536ab28a28101a655e16992e0c3ea5eb36 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 07 Jul 2010 13:01:06 +0000 Subject: remove debugging code --- 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): -- cgit v0.9.1