Update commandManager.py
This commit is contained in:
parent
63080b8d87
commit
e312ffc22e
@ -31,6 +31,8 @@ class commandManager():
|
|||||||
return environment
|
return environment
|
||||||
|
|
||||||
def executeTriggerCommands(self, environment, trigger):
|
def executeTriggerCommands(self, environment, trigger):
|
||||||
|
if environment['generalInformation ']['suspend']:
|
||||||
|
return environment
|
||||||
for cmd in sorted(environment['commands'][trigger]):
|
for cmd in sorted(environment['commands'][trigger]):
|
||||||
try:
|
try:
|
||||||
environ = environment['commands'][trigger][cmd].run(environment)
|
environ = environment['commands'][trigger][cmd].run(environment)
|
||||||
@ -42,6 +44,8 @@ class commandManager():
|
|||||||
return environment
|
return environment
|
||||||
|
|
||||||
def executeCommand(self, environment, currCommand, section = 'commands'):
|
def executeCommand(self, environment, currCommand, section = 'commands'):
|
||||||
|
if environment['generalInformation ']['suspend']:
|
||||||
|
return environment
|
||||||
if self.isCommandDefined(environment):
|
if self.isCommandDefined(environment):
|
||||||
try:
|
try:
|
||||||
environ = environment['commands'][section][currCommand].run(environment)
|
environ = environment['commands'][section][currCommand].run(environment)
|
||||||
|
Loading…
Reference in New Issue
Block a user