}
def analyse(self) :
- self.mode = mode = self.getMode()
- print 'Mode :', mode
-
results = {}
- for name in self.POSSIBLE_ANALYSES[mode] :
- meth = getattr(self, name)
- results[name] = meth()
+ try :
+ self.mode = mode = self.getMode()
+ results['playingMode'] = mode
+ for name in self.POSSIBLE_ANALYSES[mode] :
+ meth = getattr(self, name)
+ results[name] = meth()
+ except :
+ pass
return results