try except
This commit is contained in:
1 parent
b4dd3e7675
commit
407c9e57c8
1 file changed
+4
-1
@@ -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:
|
||||||
|
|||||||
Reference in new issue
Block a user