fix make first plugin ready

This commit is contained in:
chrys 2016-07-09 01:10:01 +02:00
parent 7c0c1b4bf1
commit 68361e0681

View File

@ -8,7 +8,12 @@ class commandManager():
def executeCommand(self, environment): def executeCommand(self, environment):
print(environment['commandInfo']['currCommand']) print(environment['commandInfo']['currCommand'])
if self.isCommandDefined(environment): 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'] = '' environment['commandInfo']['currCommand'] = ''
return environment return environment