try except

This commit is contained in:
chrys 2016-08-30 23:51:17 +02:00
parent b4dd3e7675
commit 407c9e57c8

View File

@ -29,7 +29,10 @@ class fenrir():
def handleProcess(self): def handleProcess(self):
self.environment, timeout = self.environment['runtime']['inputManager'].proceedInputEvents(self.environment) self.environment, timeout = self.environment['runtime']['inputManager'].proceedInputEvents(self.environment)
self.environment = self.environment['runtime']['screenDriver'].analyzeScreen(self.environment) try:
self.environment = self.environment['runtime']['screenDriver'].analyzeScreen(self.environment)
except Exception as e:
self.environment['runtime']['debug'].writeDebugOut(self.environment, str(e)+' error happy loop at'+str(time.time()),debug.debugLevel.ERROR)
if not self.environment['input']['keyForeward']: if not self.environment['input']['keyForeward']:
self.environment = self.environment['runtime']['commandManager'].getCommandForShortcut(self.environment) self.environment = self.environment['runtime']['commandManager'].getCommandForShortcut(self.environment)
if not timeout: if not timeout: