From 68361e0681458465d91611e37e39f8a03d87a30e Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 9 Jul 2016 01:10:01 +0200 Subject: [PATCH] fix make first plugin ready --- src/fenrir-package/core/commandManager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fenrir-package/core/commandManager.py b/src/fenrir-package/core/commandManager.py index 55a19051..a15505f7 100644 --- a/src/fenrir-package/core/commandManager.py +++ b/src/fenrir-package/core/commandManager.py @@ -8,7 +8,12 @@ class commandManager(): def executeCommand(self, environment): print(environment['commandInfo']['currCommand']) if self.isCommandDefined(environment): - environment['commands'][environment['commandInfo']['currCommand']].run(environment) + try: + environ = environment['commands'][environment['commandInfo']['currCommand']].run(environment) + if environ != None: + environment = environ + exept: + pass environment['commandInfo']['currCommand'] = '' return environment