From 731f03be71bbddcab36ca6f47215172f9ff0ce12 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 31 Aug 2016 14:13:28 +0200 Subject: [PATCH] Update fenrir.py --- src/fenrir-package/fenrir.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fenrir-package/fenrir.py b/src/fenrir-package/fenrir.py index 18bfbda0..c0d56954 100755 --- a/src/fenrir-package/fenrir.py +++ b/src/fenrir-package/fenrir.py @@ -22,7 +22,10 @@ class fenrir(): self.environment['runtime']['outputManager'].presentText(self.environment, "Start Fenrir", soundIcon='ScreenReaderOn', interrupt=True) #self.threadonInput.start() while(self.environment['generalInformation']['running']): - self.handleProcess() + try: + self.handleProcess() + except Exception as e: + self.environment['runtime']['debug'].writeDebugOut(self.environment,str(e)+'error in happy loop at'+str(time.time()),debug.debugLevel.ERROR) self.environment['runtime']['debug'].writeDebugOut(self.environment,'happy loop at'+str(time.time()),debug.debugLevel.ERROR) self.shutdown()