This commit is contained in:
chrys 2017-07-12 23:36:41 +02:00
parent 264fa61656
commit 3c1405a786

View File

@ -190,6 +190,7 @@ class commandManager():
self.runCommand(command, section) self.runCommand(command, section)
except Exception as e: except Exception as e:
self.env['runtime']['debug'].writeDebugOut("Executing command:" + section + "." + command +' ' + str(e),debug.debugLevel.ERROR) self.env['runtime']['debug'].writeDebugOut("Executing command:" + section + "." + command +' ' + str(e),debug.debugLevel.ERROR)
def runCommand(self, command, section = 'commands'): def runCommand(self, command, section = 'commands'):
if self.commandExists(command, section): if self.commandExists(command, section):
@ -207,7 +208,9 @@ class commandManager():
return self.env['commands'][section][command].getDescription() return self.env['commands'][section][command].getDescription()
except Exception as e: except Exception as e:
self.env['runtime']['debug'].writeDebugOut('commandManager.getCommandDescription:' + str(e),debug.debugLevel.ERROR) self.env['runtime']['debug'].writeDebugOut('commandManager.getCommandDescription:' + str(e),debug.debugLevel.ERROR)
self.clearCommandQueued()
self.env['commandInfo']['lastCommandExecutionTime'] = time.time()
def isCommandQueued(self): def isCommandQueued(self):
return self.env['commandInfo']['currCommand'] != '' return self.env['commandInfo']['currCommand'] != ''